mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 13:16:43 -05:00
Fixed crash in SDL_SetGammaRamp()
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -784,8 +784,10 @@ SDL_Surface *DIB_SetVideoMode(_THIS, SDL_Surface *current,
|
||||
if ( screen_pal && (flags & (SDL_FULLSCREEN|SDL_HWPALETTE)) ) {
|
||||
grab_palette = TRUE;
|
||||
}
|
||||
/* BitBlt() maps colors for us */
|
||||
video->flags |= SDL_HWPALETTE;
|
||||
if ( screen_pal ) {
|
||||
/* BitBlt() maps colors for us */
|
||||
video->flags |= SDL_HWPALETTE;
|
||||
}
|
||||
}
|
||||
#ifndef _WIN32_WCE
|
||||
/* Resize the window */
|
||||
|
||||
Reference in New Issue
Block a user