changeset 2934:1fcc36adc73d

Fixed logic problem with SDL_RestoreWindow()
author Sam Lantinga <slouken@libsdl.org>
date Wed, 31 Dec 2008 07:11:53 +0000
parents 73f84b1e25e5
children 59e3e0aaa725
files src/video/SDL_video.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }