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 4122cb7b118b400a
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
     1.1 --- a/src/video/bwindow/SDL_syswm.cc	Sat Dec 29 20:08:51 2007 +0000
     1.2 +++ b/src/video/bwindow/SDL_syswm.cc	Sat Dec 29 20:28:21 2007 +0000
     1.3 @@ -36,6 +36,7 @@
     1.4  int BE_IconifyWindow(_THIS)
     1.5  {
     1.6  	SDL_Win->Minimize(true);
     1.7 +	return 1;
     1.8  }
     1.9  
    1.10  SDL_GrabMode BE_GrabInput(_THIS, SDL_GrabMode mode)
     2.1 --- a/src/video/quartz/SDL_QuartzWM.m	Sat Dec 29 20:08:51 2007 +0000
     2.2 +++ b/src/video/quartz/SDL_QuartzWM.m	Sat Dec 29 20:28:21 2007 +0000
     2.3 @@ -355,6 +355,10 @@
     2.4  
     2.5      if ( ! [ qz_window isMiniaturized ] ) {
     2.6          [ qz_window miniaturize:nil ];
     2.7 +        if ( ! [ qz_window isMiniaturized ] ) {
     2.8 +            SDL_SetError ("window iconification failed");
     2.9 +            return 0;
    2.10 +        }
    2.11          return 1;
    2.12      }
    2.13      else {