Fixed operator precedence
Frank Zago to SDL
& takes precedence over |. (was a gcc warning)
--- a/src/video/SDL_video.c Fri Mar 11 18:16:39 2011 -0800
+++ b/src/video/SDL_video.c Fri Mar 11 18:38:29 2011 -0800
@@ -1885,7 +1885,7 @@
_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 @@
_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);
}