diff src/video/xbios/SDL_xbios.h @ 2073:790726541708

Save/restore current video mode and palette
author Patrice Mandin <patmandin@gmail.com>
date Mon, 13 Nov 2006 20:34:18 +0000
parents 4b3f98a9a2c1
children 2c835d58faad
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios.h	Mon Nov 13 19:59:28 2006 +0000
+++ b/src/video/xbios/SDL_xbios.h	Mon Nov 13 20:34:18 2006 +0000
@@ -29,7 +29,12 @@
 
 typedef struct SDL_VideoData
 {
-    long cookie_vdo;
+    long cookie_vdo;		/* _VDO cookie */
+
+    Uint16 old_modecode;	/* Current video mode */
+    void *old_vbase;		/* Current pointer to video RAM */
+    int old_numcol;		/* Number of colors in saved palette */
+    Uint32 old_palette[256];	/* Buffer to save current palette */
 
 #if 0
     int old_video_mode;         /* Old video mode before entering SDL */