Skip to content

Commit

Permalink
Fixed return value for iconifying the window in a couple spots.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 29, 2007
1 parent 2420ea9 commit 902bf19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/video/bwindow/SDL_syswm.cc
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/video/quartz/SDL_QuartzWM.m
Expand Up @@ -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 {
Expand Down

0 comments on commit 902bf19

Please sign in to comment.