Skip to content

Commit

Permalink
Fixed bug #849
Browse files Browse the repository at this point in the history
This was a silly bug. :)
  • Loading branch information
slouken committed Oct 17, 2009
1 parent 6431d9d commit 9aa1011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/windib/SDL_dibevents.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static void DIB_GenerateMouseMotionEvent(_THIS)
SetCursorPos(center.x, center.y); SetCursorPos(center.x, center.y);
posted = SDL_PrivateMouseMotion(0, 1, (Sint16)mouse.x, (Sint16)mouse.y); posted = SDL_PrivateMouseMotion(0, 1, (Sint16)mouse.x, (Sint16)mouse.y);
} }
} else if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) { } else {
ScreenToClient(SDL_Window, &mouse); ScreenToClient(SDL_Window, &mouse);
#ifdef SDL_VIDEO_DRIVER_GAPI #ifdef SDL_VIDEO_DRIVER_GAPI
if (SDL_VideoSurface && this->hidden->gapiInfo) if (SDL_VideoSurface && this->hidden->gapiInfo)
Expand All @@ -368,7 +368,7 @@ void DIB_PumpEvents(_THIS)
} }
} }


if ( SDL_GetAppState() & SDL_APPINPUTFOCUS ) { if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
DIB_GenerateMouseMotionEvent( this ); DIB_GenerateMouseMotionEvent( this );
} }
} }
Expand Down

0 comments on commit 9aa1011

Please sign in to comment.