Fullscreen doesn't automatically grab the cursor.
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Feb 2011 20:19:28 -0800
changeset 5416 1b085f890c44
parent 5415 62712ceb7a48
child 5417 958c15815b4a
Fullscreen doesn't automatically grab the cursor.
src/video/windows/SDL_windowswindow.c
--- a/src/video/windows/SDL_windowswindow.c	Mon Feb 28 20:16:12 2011 -0800
+++ b/src/video/windows/SDL_windowswindow.c	Mon Feb 28 20:19:28 2011 -0800
@@ -582,8 +582,8 @@
 {
     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);