From 5abc4ec11d3d99e10b50ec9af2b9fe68775833df Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 12 Sep 2009 19:41:54 +0000 Subject: [PATCH] Put some extra parentheses around some logic, to clarify order of operations. Fixes Bugzilla #740. --HG-- branch : SDL-1.2 --- src/video/windx5/SDL_dx5events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/windx5/SDL_dx5events.c b/src/video/windx5/SDL_dx5events.c index 61d1a1d62..ebbdd3095 100644 --- a/src/video/windx5/SDL_dx5events.c +++ b/src/video/windx5/SDL_dx5events.c @@ -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);