view src/video/quartz/SDL_QuartzWindow.m @ 48:f97decee03a9

Mattias' patch
author Sam Lantinga <slouken@lokigames.com>
date Thu, 07 Jun 2001 14:53:18 +0000
parents 45b1c4303f87
children ce9cd2cf0d0d
line wrap: on
line source

/* 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