diff src/video/gem/SDL_gemvideo.h @ 1074:936da0056ed3

Save/restore system palette when application topped/untopped
author Patrice Mandin <patmandin@gmail.com>
date Tue, 07 Jun 2005 11:52:46 +0000
parents 8b1c83edcde2
children c9b51268668f
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.h	Mon Jun 06 21:50:26 2005 +0000
+++ b/src/video/gem/SDL_gemvideo.h	Tue Jun 07 11:52:46 2005 +0000
@@ -65,6 +65,9 @@
 	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 */
@@ -96,6 +99,8 @@
 #define VDI_pixelsize		(this->hidden->pixelsize)
 #define VDI_oldnumcolors	(this->hidden->old_numcolors)
 #define VDI_oldpalette		(this->hidden->old_palette)
+#define VDI_curpalette		(this->hidden->cur_palette)
+#define VDI_setpalette		(this->hidden->setpalette)
 #define VDI_pitch			(this->hidden->pitch)
 #define VDI_format			(this->hidden->format)
 #define VDI_screen			(this->hidden->screen)