Commit f3adfbb1 authored by Sam Lantinga's avatar Sam Lantinga

Fixed crash in SDL_SetGammaRamp()

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402712
parent a09301c4
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment