Put some extra parentheses around some logic, to clarify order of operations.

Fixes Bugzilla #740.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403799
This commit is contained in:
Ryan C. Gordon 2009-09-12 19:41:54 +00:00
parent a787ace055
commit dfa102877a

View file

@ -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);