Skip to content
Permalink
Browse files

Fixed return value for iconifying the window in a couple spots.

  • Loading branch information
slouken committed Dec 29, 2007
1 parent 2420ea9 commit 902bf198e4f1690f5df2189cdbdef571c31ee416
Showing with 5 additions and 0 deletions.
  1. +1 −0 src/video/bwindow/SDL_syswm.cc
  2. +4 −0 src/video/quartz/SDL_QuartzWM.m
@@ -36,6 +36,7 @@ void BE_SetWMCaption(_THIS, const char *title, const char *icon)
int BE_IconifyWindow(_THIS)
{
SDL_Win->Minimize(true);
return 1;
}

SDL_GrabMode BE_GrabInput(_THIS, SDL_GrabMode mode)
@@ -355,6 +355,10 @@ int QZ_IconifyWindow (_THIS) {

if ( ! [ qz_window isMiniaturized ] ) {
[ qz_window miniaturize:nil ];
if ( ! [ qz_window isMiniaturized ] ) {
SDL_SetError ("window iconification failed");
return 0;
}
return 1;
}
else {

0 comments on commit 902bf19

Please sign in to comment.