view src/video/quartz/SDL_QuartzWindow.m @ 246:7c09c9e3b0c7

From: "Mattias Engdeg�rd" <f91-men@nada.kth.se> Subject: X11 icon byte order bug This fixes a small byte order bug when running X on a remote host with a >8bpp screen. Cheers, Mattias
author Sam Lantinga <slouken@libsdl.org>
date Tue, 27 Nov 2001 01:26:57 +0000
parents bd6b0a910a65
children d1447a846d80
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;
- (void)display;
@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
{
    [ super deminiaturize:sender ];
}

- (void)display
{
    /* Do nothing to keep pinstripe pattern from drawing */
}
@end

/* Delegate for our NSWindow to send SDLQuit() on close */
@interface SDL_QuartzWindowDelegate : NSObject
{}
- (BOOL)windowShouldClose:(id)sender;
@end

@implementation SDL_QuartzWindowDelegate
- (BOOL)windowShouldClose:(id)sender {

    SDL_PrivateQuit();
    return NO;
}
@end