src/video/wincommon/SDL_sysevents.c
changeset 1287 15a89a0c52bf
parent 1282 217f5d5a49e5
child 1288 ea3888b472bf
--- a/src/video/wincommon/SDL_sysevents.c	Sun Jan 29 08:39:35 2006 +0000
+++ b/src/video/wincommon/SDL_sysevents.c	Sun Jan 29 08:50:06 2006 +0000
@@ -565,15 +565,13 @@
 			int w, h;
 
 			GetClientRect(SDL_Window, &SDL_bounds);
-			ClientToScreen(SDL_Window, (LPPOINT)&SDL_bounds);
-			ClientToScreen(SDL_Window, (LPPOINT)&SDL_bounds+1);
-			if ( SDL_bounds.left || SDL_bounds.top ) {
-				SDL_windowX = SDL_bounds.left;
-				SDL_windowY = SDL_bounds.top;
-			}
+			SDL_windowX = SDL_bounds.left;
+			SDL_windowY = SDL_bounds.top;
 			w = SDL_bounds.right-SDL_bounds.left;
 			h = SDL_bounds.bottom-SDL_bounds.top;
 			if ( this->input_grab != SDL_GRAB_OFF ) {
+				ClientToScreen(SDL_Window, (LPPOINT)&SDL_bounds);
+				ClientToScreen(SDL_Window, (LPPOINT)&SDL_bounds+1);
 				ClipCursor(&SDL_bounds);
 			}
 			if ( SDL_PublicSurface &&