comparison src/video/windib/SDL_dibvideo.h @ 3992:c75679dce60c SDL-1.2

Fixed bug #335 Use SetSystemPaletteUse() to get better access to the system palette. We can still do better palette matching in the case where we aren't using fullscreen mode or a hardware palette, but that can wait for another day. :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 03 Jul 2007 09:05:51 +0000
parents b0d021cf41b6
children fda6e33893b7
comparison
equal deleted inserted replaced
3991:7a649501c089 3992:c75679dce60c
38 38
39 /* Private display data */ 39 /* Private display data */
40 struct SDL_PrivateVideoData { 40 struct SDL_PrivateVideoData {
41 HBITMAP screen_bmp; 41 HBITMAP screen_bmp;
42 HPALETTE screen_pal; 42 HPALETTE screen_pal;
43 LOGPALETTE *screen_logpal;
43 44
44 int allow_screensaver; 45 int allow_screensaver;
45 46
46 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ 47 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */
47 int SDL_nummodes[NUM_MODELISTS]; 48 int SDL_nummodes[NUM_MODELISTS];
56 #endif 57 #endif
57 }; 58 };
58 /* Old variable names */ 59 /* Old variable names */
59 #define screen_bmp (this->hidden->screen_bmp) 60 #define screen_bmp (this->hidden->screen_bmp)
60 #define screen_pal (this->hidden->screen_pal) 61 #define screen_pal (this->hidden->screen_pal)
62 #define screen_logpal (this->hidden->screen_logpal)
61 #define SDL_nummodes (this->hidden->SDL_nummodes) 63 #define SDL_nummodes (this->hidden->SDL_nummodes)
62 #define SDL_modelist (this->hidden->SDL_modelist) 64 #define SDL_modelist (this->hidden->SDL_modelist)
63 65
64 #endif /* _SDL_dibvideo_h */ 66 #endif /* _SDL_dibvideo_h */