Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
507:7853b6af5957 | 508:9ff7e90aaa94 |
---|---|
598 { | 598 { |
599 int maxwidth, maxheight; | 599 int maxwidth, maxheight; |
600 Uint32 modeflags, screensize; | 600 Uint32 modeflags, screensize; |
601 SDL_bool use_shadow; | 601 SDL_bool use_shadow; |
602 | 602 |
603 modeflags = SDL_HWPALETTE; | |
604 GEM_FreeBuffers(this); | 603 GEM_FreeBuffers(this); |
605 | 604 |
606 /*--- Verify if asked mode can be used ---*/ | 605 /*--- Verify if asked mode can be used ---*/ |
607 if (flags & SDL_FULLSCREEN) { | 606 if (flags & SDL_FULLSCREEN) { |
608 maxwidth=VDI_w; | 607 maxwidth=VDI_w; |
657 } | 656 } |
658 memset(GEM_buffer, 0, screensize); | 657 memset(GEM_buffer, 0, screensize); |
659 } | 658 } |
660 | 659 |
661 /*--- Initialize screen ---*/ | 660 /*--- Initialize screen ---*/ |
661 modeflags = 0; | |
662 if (VDI_bpp == 8) { | |
663 modeflags |= SDL_HWPALETTE; | |
664 } | |
665 | |
662 if (flags & SDL_FULLSCREEN) { | 666 if (flags & SDL_FULLSCREEN) { |
663 GEM_LockScreen(this); | 667 GEM_LockScreen(this); |
664 | 668 |
665 GEM_ClearScreen(this); | 669 GEM_ClearScreen(this); |
666 | 670 |