Mercurial > sdl-ios-xcode
diff src/video/windx5/SDL_dx5events.c @ 4191:caaa3cbf7b13 SDL-1.2
Put some extra parentheses around some logic, to clarify order of operations.
Fixes Bugzilla #740.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 12 Sep 2009 19:41:54 +0000 |
parents | 3012f1c37361 |
children | 0adda8ff43ef |
line wrap: on
line diff
--- a/src/video/windx5/SDL_dx5events.c Sat Sep 12 15:06:16 2009 +0000 +++ b/src/video/windx5/SDL_dx5events.c Sat Sep 12 19:41:54 2009 +0000 @@ -295,7 +295,7 @@ { extern int mouse_relative; - if ( SDL_GetAppState() & (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS) == + if ( (SDL_GetAppState() & (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS)) == (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS) ) { posted = SDL_PrivateMouseMotion( 0, relative, x, y);