Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzWindow.m @ 47:45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Thu, 07 Jun 2001 14:28:11 +0000 |
parents | |
children | ce9cd2cf0d0d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/video/quartz/SDL_QuartzWindow.m Thu Jun 07 14:28:11 2001 +0000 @@ -0,0 +1,25 @@ +/* Subclass of NSWindow to allow customization if we need it */ + +@interface SDL_QuartzWindow : NSWindow +{} +- (void)miniaturize:(id)sender; +- (void)deminiaturize:(id)sender; +@end + +@implementation SDL_QuartzWindow + +/* These methods should be rewritten to fix the miniaturize bug */ +- (void)miniaturize:(id)sender +{ + [ super miniaturize:sender ]; +} + +- (void)deminiaturize:(id)sender +{ + /* Let the app know they have to redraw everything */ + SDL_PrivateExpose (); + + [ super deminiaturize:sender ]; +} + +@end