Fixed logic problem with SDL_RestoreWindow()
authorSam Lantinga <slouken@libsdl.org>
Wed, 31 Dec 2008 07:11:53 +0000
changeset 2934 1fcc36adc73d
parent 2933 73f84b1e25e5
child 2935 59e3e0aaa725
Fixed logic problem with SDL_RestoreWindow()
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;
     }