comparison src/video/maccommon/SDL_lowvideo.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents 0801c9fdbdd6
children
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
43 #include "../SDL_sysvideo.h" 43 #include "../SDL_sysvideo.h"
44 44
45 /* Hidden "this" pointer for the video functions */ 45 /* Hidden "this" pointer for the video functions */
46 #define _THIS SDL_VideoDevice *this 46 #define _THIS SDL_VideoDevice *this
47 47
48 #if !TARGET_API_MAC_CARBON /* not available in OS X (or more accurately, Carbon) */ 48 #if !TARGET_API_MAC_CARBON /* not available in OS X (or more accurately, Carbon) */
49 /* Global QuickDraw data */ 49 /* Global QuickDraw data */
50 extern QDGlobals *theQD; 50 extern QDGlobals *theQD;
51 #endif 51 #endif
52 52
53 /* Private display data */ 53 /* Private display data */
54 struct SDL_PrivateVideoData { 54 struct SDL_PrivateVideoData
55 GDevice **SDL_Display; 55 {
56 WindowRef SDL_Window; 56 GDevice **SDL_Display;
57 SDL_Rect **SDL_modelist; 57 WindowRef SDL_Window;
58 CTabHandle SDL_CTab; 58 SDL_Rect **SDL_modelist;
59 PaletteHandle SDL_CPal; 59 CTabHandle SDL_CTab;
60 PaletteHandle SDL_CPal;
60 61
61 #if TARGET_API_MAC_CARBON 62 #if TARGET_API_MAC_CARBON
62 /* For entering and leaving fullscreen mode */ 63 /* For entering and leaving fullscreen mode */
63 Ptr fullscreen_ctx; 64 Ptr fullscreen_ctx;
64 #endif 65 #endif
65 66
66 /* The current window document style */ 67 /* The current window document style */
67 int current_style; 68 int current_style;
68 69
69 /* Information about the last cursor position */ 70 /* Information about the last cursor position */
70 Point last_where; 71 Point last_where;
71 72
72 /* Information about the last keys down */ 73 /* Information about the last keys down */
73 EventModifiers last_mods; 74 EventModifiers last_mods;
74 KeyMap last_keys; 75 KeyMap last_keys;
75 76
76 /* A handle to the Apple Menu */ 77 /* A handle to the Apple Menu */
77 MenuRef apple_menu; 78 MenuRef apple_menu;
78 79
79 /* Information used by DrawSprocket driver */ 80 /* Information used by DrawSprocket driver */
80 struct DSpInfo *dspinfo; 81 struct DSpInfo *dspinfo;
81 82
82 #if SDL_VIDEO_OPENGL 83 #if SDL_VIDEO_OPENGL
83 AGLContext appleGLContext; 84 AGLContext appleGLContext;
84 85
85 void *libraryHandle; 86 void *libraryHandle;
86 #endif 87 #endif
87 }; 88 };
88 /* Old variable names */ 89 /* Old variable names */
89 #define SDL_Display (this->hidden->SDL_Display) 90 #define SDL_Display (this->hidden->SDL_Display)
90 #define SDL_Window (this->hidden->SDL_Window) 91 #define SDL_Window (this->hidden->SDL_Window)
98 #define last_keys (this->hidden->last_keys) 99 #define last_keys (this->hidden->last_keys)
99 #define apple_menu (this->hidden->apple_menu) 100 #define apple_menu (this->hidden->apple_menu)
100 #define glContext (this->hidden->appleGLContext) 101 #define glContext (this->hidden->appleGLContext)
101 102
102 #endif /* _SDL_lowvideo_h */ 103 #endif /* _SDL_lowvideo_h */
104 /* vi: set ts=4 sw=4 expandtab: */