Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzVideo.h @ 435:140798e1e7a6
Darrell's fix for Quartz mouse motion
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 12 Aug 2002 22:43:58 +0000 |
parents | 19e73568a75c |
children | 4b8ff8ac2c07 |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzVideo.h Mon Aug 12 14:54:38 2002 +0000 +++ b/src/video/quartz/SDL_QuartzVideo.h Mon Aug 12 22:43:58 2002 +0000 @@ -61,6 +61,24 @@ #include "SDL_pixels_c.h" #include "SDL_events_c.h" +/* + Add methods to get at private members of NSScreen. + Since there is a bug in Apple's screen switching code + that does not update this variable when switching + to fullscreen, we'll set it manually (but only for the + main screen). +*/ +@interface NSScreen (NSScreenAccess) +- (void) setFrame:(NSRect)frame; +@end + +@implementation NSScreen (NSScreenAccess) +- (void) setFrame:(NSRect)frame; +{ + _frame = frame; +} +@end + /* This is a workaround to directly access NSOpenGLContext's CGL context */ /* We need to do this in order to check for errors */ @interface NSOpenGLContext (CGLContextAccess)