Mercurial > sdl-ios-xcode
comparison src/video/quartz/SDL_QuartzWM.m @ 4122:cb7b118b400a SDL-1.2
Fixed return value for iconifying the window in a couple spots.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Dec 2007 20:28:21 +0000 |
parents | b8f2db95145e |
children | a1b03ba2fcd0 |
comparison
equal
deleted
inserted
replaced
4121:917ca146d901 | 4122:cb7b118b400a |
---|---|
353 | 353 |
354 int QZ_IconifyWindow (_THIS) { | 354 int QZ_IconifyWindow (_THIS) { |
355 | 355 |
356 if ( ! [ qz_window isMiniaturized ] ) { | 356 if ( ! [ qz_window isMiniaturized ] ) { |
357 [ qz_window miniaturize:nil ]; | 357 [ qz_window miniaturize:nil ]; |
358 if ( ! [ qz_window isMiniaturized ] ) { | |
359 SDL_SetError ("window iconification failed"); | |
360 return 0; | |
361 } | |
358 return 1; | 362 return 1; |
359 } | 363 } |
360 else { | 364 else { |
361 SDL_SetError ("window already iconified"); | 365 SDL_SetError ("window already iconified"); |
362 return 0; | 366 return 0; |