Put some extra parentheses around some logic, to clarify order of operations. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sat, 12 Sep 2009 19:41:54 +0000
branchSDL-1.2
changeset 4191caaa3cbf7b13
parent 4190 386181851388
child 4192 2f5e884f0a9d
Put some extra parentheses around some logic, to clarify order of operations.

Fixes Bugzilla #740.
src/video/windx5/SDL_dx5events.c
     1.1 --- a/src/video/windx5/SDL_dx5events.c	Sat Sep 12 15:06:16 2009 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5events.c	Sat Sep 12 19:41:54 2009 +0000
     1.3 @@ -295,7 +295,7 @@
     1.4  {
     1.5  	extern int mouse_relative;
     1.6  
     1.7 -	if ( SDL_GetAppState() & (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS) ==
     1.8 +	if ( (SDL_GetAppState() & (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS)) ==
     1.9  		(SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS) ) {
    1.10  		posted = SDL_PrivateMouseMotion(
    1.11  			0, relative, x, y);