comparison src/video/SDL_video.c @ 2934:1fcc36adc73d

Fixed logic problem with SDL_RestoreWindow()
author Sam Lantinga <slouken@libsdl.org>
date Wed, 31 Dec 2008 07:11:53 +0000
parents e171ce9bdbad
children e4a469d6ddab
comparison
equal deleted inserted replaced
2933:73f84b1e25e5 2934:1fcc36adc73d
1140 SDL_RestoreWindow(SDL_WindowID windowID) 1140 SDL_RestoreWindow(SDL_WindowID windowID)
1141 { 1141 {
1142 SDL_Window *window = SDL_GetWindowFromID(windowID); 1142 SDL_Window *window = SDL_GetWindowFromID(windowID);
1143 1143
1144 if (!window 1144 if (!window
1145 || (window->flags & (SDL_WINDOW_MAXIMIZED | SDL_WINDOW_MINIMIZED))) { 1145 || !(window->flags & (SDL_WINDOW_MAXIMIZED | SDL_WINDOW_MINIMIZED))) {
1146 return; 1146 return;
1147 } 1147 }
1148 1148
1149 if (_this->RestoreWindow) { 1149 if (_this->RestoreWindow) {
1150 _this->RestoreWindow(_this, window); 1150 _this->RestoreWindow(_this, window);