Mercurial > sdl-ios-xcode
diff src/video/gem/SDL_gemvideo.c @ 508:9ff7e90aaa94
Fixed gamma correction in Atari video drivers (thanks Patrice!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 05 Oct 2002 16:27:56 +0000 |
parents | 189a6a3416c7 |
children | 0ce5a68278fd |
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.c Sat Oct 05 16:27:29 2002 +0000 +++ b/src/video/gem/SDL_gemvideo.c Sat Oct 05 16:27:56 2002 +0000 @@ -600,7 +600,6 @@ Uint32 modeflags, screensize; SDL_bool use_shadow; - modeflags = SDL_HWPALETTE; GEM_FreeBuffers(this); /*--- Verify if asked mode can be used ---*/ @@ -659,6 +658,11 @@ } /*--- Initialize screen ---*/ + modeflags = 0; + if (VDI_bpp == 8) { + modeflags |= SDL_HWPALETTE; + } + if (flags & SDL_FULLSCREEN) { GEM_LockScreen(this);