src/video/SDL_video.c
changeset 5480 55a687c55676
parent 5479 5c4635640bf9
child 5535 96594ac5fd1a
--- 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);
     }