# HG changeset patch # User Sam Lantinga # Date 1230707513 0 # Node ID 1fcc36adc73dde0dcf988914fc75067ffd9df552 # Parent 73f84b1e25e5c793604f9dc9841fe63b9c715d0e Fixed logic problem with SDL_RestoreWindow() diff -r 73f84b1e25e5 -r 1fcc36adc73d src/video/SDL_video.c --- a/src/video/SDL_video.c Wed Dec 31 06:18:33 2008 +0000 +++ b/src/video/SDL_video.c Wed Dec 31 07:11:53 2008 +0000 @@ -1142,7 +1142,7 @@ SDL_Window *window = SDL_GetWindowFromID(windowID); if (!window - || (window->flags & (SDL_WINDOW_MAXIMIZED | SDL_WINDOW_MINIMIZED))) { + || !(window->flags & (SDL_WINDOW_MAXIMIZED | SDL_WINDOW_MINIMIZED))) { return; }