src/video/quartz/SDL_QuartzVideo.h
changeset 435 140798e1e7a6
parent 390 19e73568a75c
child 498 4b8ff8ac2c07
     1.1 --- a/src/video/quartz/SDL_QuartzVideo.h	Mon Aug 12 14:54:38 2002 +0000
     1.2 +++ b/src/video/quartz/SDL_QuartzVideo.h	Mon Aug 12 22:43:58 2002 +0000
     1.3 @@ -61,6 +61,24 @@
     1.4  #include "SDL_pixels_c.h"
     1.5  #include "SDL_events_c.h"
     1.6  
     1.7 +/* 
     1.8 +   Add methods to get at private members of NSScreen. 
     1.9 +   Since there is a bug in Apple's screen switching code
    1.10 +   that does not update this variable when switching
    1.11 +   to fullscreen, we'll set it manually (but only for the
    1.12 +   main screen).
    1.13 +*/
    1.14 +@interface NSScreen (NSScreenAccess)
    1.15 +- (void) setFrame:(NSRect)frame;
    1.16 +@end
    1.17 +
    1.18 +@implementation NSScreen (NSScreenAccess)
    1.19 +- (void) setFrame:(NSRect)frame;
    1.20 +{
    1.21 +    _frame = frame;
    1.22 +}
    1.23 +@end
    1.24 +
    1.25  /* This is a workaround to directly access NSOpenGLContext's CGL context */
    1.26  /* We need to do this in order to check for errors */
    1.27  @interface NSOpenGLContext (CGLContextAccess)