Commit 10c875b1 authored by Sam Lantinga's avatar Sam Lantinga

Fullscreen doesn't automatically grab the cursor.

parent 9053cfa4
...@@ -582,8 +582,8 @@ WIN_SetWindowGrab(_THIS, SDL_Window * window) ...@@ -582,8 +582,8 @@ WIN_SetWindowGrab(_THIS, SDL_Window * window)
{ {
HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd; HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN)) if ((window->flags & SDL_WINDOW_INPUT_GRABBED) &&
&& (window->flags & SDL_WINDOW_INPUT_FOCUS)) { (window->flags & SDL_WINDOW_INPUT_FOCUS)) {
RECT rect; RECT rect;
GetClientRect(hwnd, &rect); GetClientRect(hwnd, &rect);
ClientToScreen(hwnd, (LPPOINT) & rect); ClientToScreen(hwnd, (LPPOINT) & rect);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment