mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Note that the cursor clip has been cleared even if we didn't do it
This releases the mouse cursor when bringing up the console on Counter Strike in dev mode.
This commit is contained in:
parent
19b3ddac2f
commit
16e0806ced
1 changed files with 2 additions and 1 deletions
|
|
@ -1577,8 +1577,9 @@ void WIN_UpdateClipCursor(SDL_Window *window)
|
|||
if (PtInRect(&data->cursor_clipped_rect, first) &&
|
||||
PtInRect(&data->cursor_clipped_rect, second)) {
|
||||
ClipCursor(NULL);
|
||||
SDL_zero(data->cursor_clipped_rect);
|
||||
}
|
||||
/* Note that we don't have the cursor clipped anymore, even if it's not us that reset it */
|
||||
SDL_zero(data->cursor_clipped_rect);
|
||||
}
|
||||
data->last_updated_clipcursor = SDL_GetTicks();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue