diff src/video/maccommon/SDL_lowvideo.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents 0801c9fdbdd6
children
line wrap: on
line diff
--- a/src/video/maccommon/SDL_lowvideo.h	Sun May 21 17:27:13 2006 +0000
+++ b/src/video/maccommon/SDL_lowvideo.h	Sun May 28 13:04:16 2006 +0000
@@ -45,44 +45,45 @@
 /* Hidden "this" pointer for the video functions */
 #define _THIS	SDL_VideoDevice *this
 
-#if !TARGET_API_MAC_CARBON  /* not available in OS X (or more accurately, Carbon) */
+#if !TARGET_API_MAC_CARBON      /* not available in OS X (or more accurately, Carbon) */
 /* Global QuickDraw data */
 extern QDGlobals *theQD;
 #endif
 
 /* Private display data */
-struct SDL_PrivateVideoData {
-	GDevice **SDL_Display;
-	WindowRef SDL_Window;
-	SDL_Rect **SDL_modelist;
-	CTabHandle SDL_CTab;
-	PaletteHandle SDL_CPal;
+struct SDL_PrivateVideoData
+{
+    GDevice **SDL_Display;
+    WindowRef SDL_Window;
+    SDL_Rect **SDL_modelist;
+    CTabHandle SDL_CTab;
+    PaletteHandle SDL_CPal;
 
 #if TARGET_API_MAC_CARBON
-	/* For entering and leaving fullscreen mode */
-	Ptr fullscreen_ctx;
+    /* For entering and leaving fullscreen mode */
+    Ptr fullscreen_ctx;
 #endif
 
-	/* The current window document style */
-	int current_style;
+    /* The current window document style */
+    int current_style;
 
-	/* Information about the last cursor position */
-	Point last_where;
+    /* Information about the last cursor position */
+    Point last_where;
 
-	/* Information about the last keys down */
-	EventModifiers last_mods;
-	KeyMap last_keys;
+    /* Information about the last keys down */
+    EventModifiers last_mods;
+    KeyMap last_keys;
 
-	/* A handle to the Apple Menu */
-	MenuRef apple_menu;
+    /* A handle to the Apple Menu */
+    MenuRef apple_menu;
 
-	/* Information used by DrawSprocket driver */
-	struct DSpInfo *dspinfo;
+    /* Information used by DrawSprocket driver */
+    struct DSpInfo *dspinfo;
 
 #if SDL_VIDEO_OPENGL
-	AGLContext appleGLContext;
+    AGLContext appleGLContext;
 
-	void *libraryHandle;
+    void *libraryHandle;
 #endif
 };
 /* Old variable names */
@@ -100,3 +101,4 @@
 #define glContext		(this->hidden->appleGLContext)
 
 #endif /* _SDL_lowvideo_h */
+/* vi: set ts=4 sw=4 expandtab: */