Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
4190:386181851388 | 4191:caaa3cbf7b13 |
---|---|
293 | 293 |
294 static void post_mouse_motion(int relative, Sint16 x, Sint16 y) | 294 static void post_mouse_motion(int relative, Sint16 x, Sint16 y) |
295 { | 295 { |
296 extern int mouse_relative; | 296 extern int mouse_relative; |
297 | 297 |
298 if ( SDL_GetAppState() & (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS) == | 298 if ( (SDL_GetAppState() & (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS)) == |
299 (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS) ) { | 299 (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS) ) { |
300 posted = SDL_PrivateMouseMotion( | 300 posted = SDL_PrivateMouseMotion( |
301 0, relative, x, y); | 301 0, relative, x, y); |
302 | 302 |
303 if ( !mouse_relative ) { | 303 if ( !mouse_relative ) { |