Fullscreen doesn't automatically grab the cursor.
This commit is contained in:
parent
9053cfa4cc
commit
10c875b184
1 changed files with 2 additions and 2 deletions
|
@ -582,8 +582,8 @@ WIN_SetWindowGrab(_THIS, SDL_Window * window)
|
|||
{
|
||||
HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
|
||||
|
||||
if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN))
|
||||
&& (window->flags & SDL_WINDOW_INPUT_FOCUS)) {
|
||||
if ((window->flags & SDL_WINDOW_INPUT_GRABBED) &&
|
||||
(window->flags & SDL_WINDOW_INPUT_FOCUS)) {
|
||||
RECT rect;
|
||||
GetClientRect(hwnd, &rect);
|
||||
ClientToScreen(hwnd, (LPPOINT) & rect);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue