Fixed return value for iconifying the window in a couple spots. SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Dec 2007 20:28:21 +0000
branchSDL-1.2
changeset 4122 cb7b118b400a
parent 4121 917ca146d901
child 4123 9d90d7765fa7
Fixed return value for iconifying the window in a couple spots.
src/video/bwindow/SDL_syswm.cc
src/video/quartz/SDL_QuartzWM.m
--- a/src/video/bwindow/SDL_syswm.cc	Sat Dec 29 20:08:51 2007 +0000
+++ b/src/video/bwindow/SDL_syswm.cc	Sat Dec 29 20:28:21 2007 +0000
@@ -36,6 +36,7 @@
 int BE_IconifyWindow(_THIS)
 {
 	SDL_Win->Minimize(true);
+	return 1;
 }
 
 SDL_GrabMode BE_GrabInput(_THIS, SDL_GrabMode mode)
--- a/src/video/quartz/SDL_QuartzWM.m	Sat Dec 29 20:08:51 2007 +0000
+++ b/src/video/quartz/SDL_QuartzWM.m	Sat Dec 29 20:28:21 2007 +0000
@@ -355,6 +355,10 @@
 
     if ( ! [ qz_window isMiniaturized ] ) {
         [ qz_window miniaturize:nil ];
+        if ( ! [ qz_window isMiniaturized ] ) {
+            SDL_SetError ("window iconification failed");
+            return 0;
+        }
         return 1;
     }
     else {