mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Fixed return value for iconifying the window in a couple spots.
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user