Skip to content

Commit

Permalink
Put some extra parentheses around some logic, to clarify order of ope…
Browse files Browse the repository at this point in the history
…rations.

  Fixes Bugzilla #740.
  • Loading branch information
icculus committed Sep 12, 2009
1 parent 196b0da commit a3d27d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/windx5/SDL_dx5events.c
Expand Up @@ -295,7 +295,7 @@ static void post_mouse_motion(int relative, Sint16 x, Sint16 y)
{
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);
Expand Down

0 comments on commit a3d27d0

Please sign in to comment.