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:
parent
a787ace055
commit
dfa102877a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue