Commit c4370afc authored by Sam Lantinga's avatar Sam Lantinga

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

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402682
parent 61b0ff7d
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment