Fixed operator precedence
authorSam Lantinga <slouken@libsdl.org>
Fri, 11 Mar 2011 18:38:29 -0800
changeset 548055a687c55676
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
     1.1 --- a/src/video/SDL_video.c	Fri Mar 11 18:16:39 2011 -0800
     1.2 +++ b/src/video/SDL_video.c	Fri Mar 11 18:38:29 2011 -0800
     1.3 @@ -1885,7 +1885,7 @@
     1.4          _this->SetWindowGammaRamp(_this, window, window->gamma);
     1.5      }
     1.6  
     1.7 -    if ((window->flags & SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN) &&
     1.8 +    if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN)) &&
     1.9          _this->SetWindowGrab) {
    1.10          _this->SetWindowGrab(_this, window);
    1.11      }
    1.12 @@ -1898,7 +1898,7 @@
    1.13          _this->SetWindowGammaRamp(_this, window, window->saved_gamma);
    1.14      }
    1.15  
    1.16 -    if ((window->flags & SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN) &&
    1.17 +    if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN)) &&
    1.18          _this->SetWindowGrab) {
    1.19          _this->SetWindowGrab(_this, window);
    1.20      }