changeset 4122:cb7b118b400a SDL-1.2

Fixed return value for iconifying the window in a couple spots.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Dec 2007 20:28:21 +0000
parents 917ca146d901
children 9d90d7765fa7
files src/video/bwindow/SDL_syswm.cc src/video/quartz/SDL_QuartzWM.m
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 {