Fixed operator precedence

Frank Zago to SDL

& takes precedence over |. (was a gcc warning)
This commit is contained in:
Sam Lantinga
2011-03-11 18:38:29 -08:00
parent 61169f9e86
commit 4b75bcbd5d

View File

@@ -1885,7 +1885,7 @@ SDL_OnWindowFocusGained(SDL_Window * window)
_this->SetWindowGammaRamp(_this, window, window->gamma);
}
if ((window->flags & SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN) &&
if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN)) &&
_this->SetWindowGrab) {
_this->SetWindowGrab(_this, window);
}
@@ -1898,7 +1898,7 @@ SDL_OnWindowFocusLost(SDL_Window * window)
_this->SetWindowGammaRamp(_this, window, window->saved_gamma);
}
if ((window->flags & SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN) &&
if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN)) &&
_this->SetWindowGrab) {
_this->SetWindowGrab(_this, window);
}