changeset 4350:4988a4f76a09 SDL-1.2

Fixed bug #849 This was a silly bug. :)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 17 Oct 2009 16:49:23 +0000
parents 471dac4b41dd
children 3ae3624c3cbc
files src/video/windib/SDL_dibevents.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/windib/SDL_dibevents.c	Sat Oct 17 07:05:33 2009 +0000
+++ b/src/video/windib/SDL_dibevents.c	Sat Oct 17 16:49:23 2009 +0000
@@ -347,7 +347,7 @@
 			SetCursorPos(center.x, center.y);
 			posted = SDL_PrivateMouseMotion(0, 1, (Sint16)mouse.x, (Sint16)mouse.y);
 		}
-	} else if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
+	} else {
 		ScreenToClient(SDL_Window, &mouse);
 #ifdef SDL_VIDEO_DRIVER_GAPI
        if (SDL_VideoSurface && this->hidden->gapiInfo)
@@ -368,7 +368,7 @@
 		}
 	}
 
-	if ( SDL_GetAppState() & SDL_APPINPUTFOCUS ) {
+	if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
 		DIB_GenerateMouseMotionEvent( this );
 	}
 }