Commit 2bfebc89 authored by Sam Lantinga's avatar Sam Lantinga

Fixed operator precedence

Frank Zago to SDL

& takes precedence over |. (was a gcc warning)
parent 23b4b79a
...@@ -1885,7 +1885,7 @@ SDL_OnWindowFocusGained(SDL_Window * window) ...@@ -1885,7 +1885,7 @@ SDL_OnWindowFocusGained(SDL_Window * window)
_this->SetWindowGammaRamp(_this, window, window->gamma); _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->SetWindowGrab(_this, window); _this->SetWindowGrab(_this, window);
} }
...@@ -1898,7 +1898,7 @@ SDL_OnWindowFocusLost(SDL_Window * window) ...@@ -1898,7 +1898,7 @@ SDL_OnWindowFocusLost(SDL_Window * window)
_this->SetWindowGammaRamp(_this, window, window->saved_gamma); _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->SetWindowGrab(_this, window); _this->SetWindowGrab(_this, window);
} }
......
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