Mercurial > sdl-ios-xcode
changeset 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 | 386181851388 |
children | 2f5e884f0a9d |
files | src/video/windx5/SDL_dx5events.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);