Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibvideo.h @ 4079:fda6e33893b7 SDL-1.2
Always advertise hardware palette, since Windows will remap colors for us.
We do grab the system colors if the application requested fullscreen or a
real hardware palette.
This allows gamma fading, etc. to work, and is what previous versions did.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 16 Jul 2007 05:08:20 +0000 |
parents | c75679dce60c |
children | 568c9b3c0167 |
comparison
equal
deleted
inserted
replaced
4078:5e6f2972f963 | 4079:fda6e33893b7 |
---|---|
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 LOGPALETTE *screen_logpal; |
44 BOOL grab_palette; | |
44 | 45 |
45 int allow_screensaver; | 46 int allow_screensaver; |
46 | 47 |
47 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ | 48 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ |
48 int SDL_nummodes[NUM_MODELISTS]; | 49 int SDL_nummodes[NUM_MODELISTS]; |
58 }; | 59 }; |
59 /* Old variable names */ | 60 /* Old variable names */ |
60 #define screen_bmp (this->hidden->screen_bmp) | 61 #define screen_bmp (this->hidden->screen_bmp) |
61 #define screen_pal (this->hidden->screen_pal) | 62 #define screen_pal (this->hidden->screen_pal) |
62 #define screen_logpal (this->hidden->screen_logpal) | 63 #define screen_logpal (this->hidden->screen_logpal) |
64 #define grab_palette (this->hidden->grab_palette) | |
63 #define SDL_nummodes (this->hidden->SDL_nummodes) | 65 #define SDL_nummodes (this->hidden->SDL_nummodes) |
64 #define SDL_modelist (this->hidden->SDL_modelist) | 66 #define SDL_modelist (this->hidden->SDL_modelist) |
65 | 67 |
66 #endif /* _SDL_dibvideo_h */ | 68 #endif /* _SDL_dibvideo_h */ |