# HG changeset patch # User Ryan C. Gordon # Date 1252784514 0 # Node ID caaa3cbf7b13ec759fff7409a2daf405a75b5a72 # Parent 3861818513889acd4c5fc322f3387b50cd50df6d Put some extra parentheses around some logic, to clarify order of operations. Fixes Bugzilla #740. diff -r 386181851388 -r caaa3cbf7b13 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);