Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.h Mon Jul 16 03:27:26 2007 +0000 +++ b/src/video/windib/SDL_dibvideo.h Mon Jul 16 05:08:20 2007 +0000 @@ -41,6 +41,7 @@ HBITMAP screen_bmp; HPALETTE screen_pal; LOGPALETTE *screen_logpal; + BOOL grab_palette; int allow_screensaver; @@ -60,6 +61,7 @@ #define screen_bmp (this->hidden->screen_bmp) #define screen_pal (this->hidden->screen_pal) #define screen_logpal (this->hidden->screen_logpal) +#define grab_palette (this->hidden->grab_palette) #define SDL_nummodes (this->hidden->SDL_nummodes) #define SDL_modelist (this->hidden->SDL_modelist)