Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibvideo.c @ 4136:8797fa6e2fb2 SDL-1.2
Fixed crash in SDL_SetGammaRamp()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 25 Jan 2008 05:48:08 +0000 |
parents | 31c7c57af8a4 |
children | 568c9b3c0167 |
comparison
equal
deleted
inserted
replaced
4135:cd98d1dc385c | 4136:8797fa6e2fb2 |
---|---|
782 | 782 |
783 /* Set video surface flags */ | 783 /* Set video surface flags */ |
784 if ( screen_pal && (flags & (SDL_FULLSCREEN|SDL_HWPALETTE)) ) { | 784 if ( screen_pal && (flags & (SDL_FULLSCREEN|SDL_HWPALETTE)) ) { |
785 grab_palette = TRUE; | 785 grab_palette = TRUE; |
786 } | 786 } |
787 /* BitBlt() maps colors for us */ | 787 if ( screen_pal ) { |
788 video->flags |= SDL_HWPALETTE; | 788 /* BitBlt() maps colors for us */ |
789 video->flags |= SDL_HWPALETTE; | |
790 } | |
789 } | 791 } |
790 #ifndef _WIN32_WCE | 792 #ifndef _WIN32_WCE |
791 /* Resize the window */ | 793 /* Resize the window */ |
792 if ( !SDL_windowid && !IsZoomed(SDL_Window) ) { | 794 if ( !SDL_windowid && !IsZoomed(SDL_Window) ) { |
793 #else | 795 #else |