mirror of
https://github.com/yawut/SDL.git
synced 2026-10-01 20:56:44 -05:00
Put some extra parentheses around some logic, to clarify order of operations.
Fixes Bugzilla #740. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user