Commit dfa10287 authored by Ryan C. Gordon's avatar Ryan C. Gordon

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
parent a787ace0
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment