comparison 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
comparison
equal deleted inserted replaced
1073:6d3c1134cd19 1074:936da0056ed3
63 Uint32 red, green, blue, alpha; /* Screen components */ 63 Uint32 red, green, blue, alpha; /* Screen components */
64 Uint32 screensize; 64 Uint32 screensize;
65 short blit_coords[8]; /* Coordinates for bitblt */ 65 short blit_coords[8]; /* Coordinates for bitblt */
66 MFDB src_mfdb, dst_mfdb; /* VDI MFDB for bitblt */ 66 MFDB src_mfdb, dst_mfdb; /* VDI MFDB for bitblt */
67 Uint16 old_palette[256][3]; /* Saved current palette */ 67 Uint16 old_palette[256][3]; /* Saved current palette */
68 Uint16 cur_palette[256][3]; /* SDL application palette */
69 /* Function to set/restore palette */
70 void (*setpalette)(_THIS, Uint16 newpal[256][3]);
68 71
69 /* GEM infos */ 72 /* GEM infos */
70 short desk_x, desk_y; /* Desktop properties */ 73 short desk_x, desk_y; /* Desktop properties */
71 short desk_w, desk_h; 74 short desk_w, desk_h;
72 short win_handle; /* Our window handle */ 75 short win_handle; /* Our window handle */
94 #define VDI_h (this->hidden->full_h) 97 #define VDI_h (this->hidden->full_h)
95 #define VDI_bpp (this->hidden->bpp) 98 #define VDI_bpp (this->hidden->bpp)
96 #define VDI_pixelsize (this->hidden->pixelsize) 99 #define VDI_pixelsize (this->hidden->pixelsize)
97 #define VDI_oldnumcolors (this->hidden->old_numcolors) 100 #define VDI_oldnumcolors (this->hidden->old_numcolors)
98 #define VDI_oldpalette (this->hidden->old_palette) 101 #define VDI_oldpalette (this->hidden->old_palette)
102 #define VDI_curpalette (this->hidden->cur_palette)
103 #define VDI_setpalette (this->hidden->setpalette)
99 #define VDI_pitch (this->hidden->pitch) 104 #define VDI_pitch (this->hidden->pitch)
100 #define VDI_format (this->hidden->format) 105 #define VDI_format (this->hidden->format)
101 #define VDI_screen (this->hidden->screen) 106 #define VDI_screen (this->hidden->screen)
102 #define VDI_redmask (this->hidden->red) 107 #define VDI_redmask (this->hidden->red)
103 #define VDI_greenmask (this->hidden->green) 108 #define VDI_greenmask (this->hidden->green)