comparison 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
comparison
equal deleted inserted replaced
434:ed58b98c0d9d 435:140798e1e7a6
59 #include "SDL_syswm.h" 59 #include "SDL_syswm.h"
60 #include "SDL_sysvideo.h" 60 #include "SDL_sysvideo.h"
61 #include "SDL_pixels_c.h" 61 #include "SDL_pixels_c.h"
62 #include "SDL_events_c.h" 62 #include "SDL_events_c.h"
63 63
64 /*
65 Add methods to get at private members of NSScreen.
66 Since there is a bug in Apple's screen switching code
67 that does not update this variable when switching
68 to fullscreen, we'll set it manually (but only for the
69 main screen).
70 */
71 @interface NSScreen (NSScreenAccess)
72 - (void) setFrame:(NSRect)frame;
73 @end
74
75 @implementation NSScreen (NSScreenAccess)
76 - (void) setFrame:(NSRect)frame;
77 {
78 _frame = frame;
79 }
80 @end
81
64 /* This is a workaround to directly access NSOpenGLContext's CGL context */ 82 /* This is a workaround to directly access NSOpenGLContext's CGL context */
65 /* We need to do this in order to check for errors */ 83 /* We need to do this in order to check for errors */
66 @interface NSOpenGLContext (CGLContextAccess) 84 @interface NSOpenGLContext (CGLContextAccess)
67 - (CGLContextObj) cglContext; 85 - (CGLContextObj) cglContext;
68 @end 86 @end