diff src/video/gem/SDL_gemvideo.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 2405517b5eab
children 4da1ee79c9af
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.h	Sun May 21 17:27:13 2006 +0000
+++ b/src/video/gem/SDL_gemvideo.h	Sun May 28 13:04:16 2006 +0000
@@ -31,61 +31,62 @@
 #define _THIS	SDL_VideoDevice *this
 
 /* Functions prototypes */
-void GEM_wind_redraw(_THIS, int winhandle, short *inside);
+void GEM_wind_redraw (_THIS, int winhandle, short *inside);
 
 /* Private display data */
 
-#define B2S_C2P_1TO2		(1<<0)	/* C2P convert buffer 1 to buffer 2 */
-#define B2S_C2P_1TOS		(1<<1)	/* C2P convert buffer 1 to screen */
-#define B2S_VROCPYFM_1TOS	(1<<2)	/* vro_cpyfm() buffer 1 to screen */
-#define B2S_VROCPYFM_2TOS	(1<<3)	/* vro_cpyfm() buffer 2 to screen */
+#define B2S_C2P_1TO2		(1<<0)  /* C2P convert buffer 1 to buffer 2 */
+#define B2S_C2P_1TOS		(1<<1)  /* C2P convert buffer 1 to screen */
+#define B2S_VROCPYFM_1TOS	(1<<2)  /* vro_cpyfm() buffer 1 to screen */
+#define B2S_VROCPYFM_2TOS	(1<<3)  /* vro_cpyfm() buffer 2 to screen */
 
-#define SDL_NUMMODES	1		/* Fullscreen */
+#define SDL_NUMMODES	1       /* Fullscreen */
 
-struct SDL_PrivateVideoData {
-	Uint16	buf2scr_ops;		/* Operations to get buffer to screen */
-    void *buffer1;				/* Our shadow buffers */
-	void *buffer2;
+struct SDL_PrivateVideoData
+{
+    Uint16 buf2scr_ops;         /* Operations to get buffer to screen */
+    void *buffer1;              /* Our shadow buffers */
+    void *buffer2;
 
-	/* VDI infos */
-	short vdi_handle;			/* VDI handle */
-	short full_w, full_h;		/* Fullscreen size */
-    short bpp;					/* Colour depth */
-	short pixelsize;			/* Bytes per pixel */
-	short old_numcolors;		/* Number of colors in saved palette */
-	Uint16 pitch;				/* Line length */
-	Uint16 format;				/* Screen format */
-	void *screen;				/* Screen address */
-	Uint32 red, green, blue, alpha;	/* Screen components */
-	Uint32 screensize;
-	short	blit_coords[8];		/* Coordinates for bitblt */
-	MFDB	src_mfdb, dst_mfdb;	/* VDI MFDB for bitblt */
-	Uint16 old_palette[256][3];	/* Saved current palette */
-	Uint16 cur_palette[256][3];	/* SDL application palette */
-								/* Function to set/restore palette */
-	void (*setpalette)(_THIS, Uint16 newpal[256][3]);
+    /* VDI infos */
+    short vdi_handle;           /* VDI handle */
+    short full_w, full_h;       /* Fullscreen size */
+    short bpp;                  /* Colour depth */
+    short pixelsize;            /* Bytes per pixel */
+    short old_numcolors;        /* Number of colors in saved palette */
+    Uint16 pitch;               /* Line length */
+    Uint16 format;              /* Screen format */
+    void *screen;               /* Screen address */
+    Uint32 red, green, blue, alpha;     /* Screen components */
+    Uint32 screensize;
+    short blit_coords[8];       /* Coordinates for bitblt */
+    MFDB src_mfdb, dst_mfdb;    /* VDI MFDB for bitblt */
+    Uint16 old_palette[256][3]; /* Saved current palette */
+    Uint16 cur_palette[256][3]; /* SDL application palette */
+    /* Function to set/restore palette */
+    void (*setpalette) (_THIS, Uint16 newpal[256][3]);
 
-	/* GEM infos */
-	short desk_x, desk_y;		/* Desktop properties */
-	short desk_w, desk_h;
-	short win_handle;			/* Our window handle */
-	int window_type;			/* Window type */
-	const char *title_name;		/* Window title */
-	const char *icon_name;		/* Icon title */
-	short version;				/* AES version */
-	short wfeatures;			/* AES window features */
-	SDL_bool refresh_name;		/* Change window title ? */
-	SDL_bool window_fulled;		/* Window maximized ? */
-	SDL_bool mouse_relative;	/* Report relative mouse movement */
-	SDL_bool locked;			/* AES locked for fullscreen ? */
-	SDL_bool lock_redraw;		/* Prevent redraw till buffers are setup */
-	short message[8];			/* To self-send an AES message */
-	void *menubar;				/* Menu bar save buffer when going fullscreen */
-	SDL_bool use_dev_mouse;		/* Use /dev/mouse ? */
+    /* GEM infos */
+    short desk_x, desk_y;       /* Desktop properties */
+    short desk_w, desk_h;
+    short win_handle;           /* Our window handle */
+    int window_type;            /* Window type */
+    const char *title_name;     /* Window title */
+    const char *icon_name;      /* Icon title */
+    short version;              /* AES version */
+    short wfeatures;            /* AES window features */
+    SDL_bool refresh_name;      /* Change window title ? */
+    SDL_bool window_fulled;     /* Window maximized ? */
+    SDL_bool mouse_relative;    /* Report relative mouse movement */
+    SDL_bool locked;            /* AES locked for fullscreen ? */
+    SDL_bool lock_redraw;       /* Prevent redraw till buffers are setup */
+    short message[8];           /* To self-send an AES message */
+    void *menubar;              /* Menu bar save buffer when going fullscreen */
+    SDL_bool use_dev_mouse;     /* Use /dev/mouse ? */
 
-	SDL_bool fullscreen;		/* Fullscreen or windowed mode ? */
-	SDL_Rect *SDL_modelist[SDL_NUMMODES+1];	/* Mode list */
-	SDL_Surface *icon;			/* The icon */
+    SDL_bool fullscreen;        /* Fullscreen or windowed mode ? */
+    SDL_Rect *SDL_modelist[SDL_NUMMODES + 1];   /* Mode list */
+    SDL_Surface *icon;          /* The icon */
 };
 
 /* Hidden structure -> variables names */
@@ -182,3 +183,4 @@
 */
 
 #endif /* _SDL_gemvideo_h */
+/* vi: set ts=4 sw=4 expandtab: */