Fixed operator precedence
authorSam Lantinga <slouken@libsdl.org>
Fri, 11 Mar 2011 18:38:29 -0800
changeset 5480 55a687c55676
parent 5479 5c4635640bf9
child 5481 22dfc3958dc3
Fixed operator precedence Frank Zago to SDL & takes precedence over |. (was a gcc warning)
src/video/SDL_video.c
--- 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);
     }