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

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2007-12-29 20:28:21 +00:00
parent 2ea5504ad8
commit 3c8d72035f
2 changed files with 5 additions and 0 deletions

View File

@@ -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)

View File

@@ -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 {