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 4191 caaa3cbf7b13
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
--- 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);