Fixed crash in SDL_SetGammaRamp()
--HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402712
This commit is contained in:
parent
a09301c4f1
commit
f3adfbb15c
1 changed files with 4 additions and 2 deletions
|
@ -784,8 +784,10 @@ SDL_Surface *DIB_SetVideoMode(_THIS, SDL_Surface *current,
|
||||||
if ( screen_pal && (flags & (SDL_FULLSCREEN|SDL_HWPALETTE)) ) {
|
if ( screen_pal && (flags & (SDL_FULLSCREEN|SDL_HWPALETTE)) ) {
|
||||||
grab_palette = TRUE;
|
grab_palette = TRUE;
|
||||||
}
|
}
|
||||||
/* BitBlt() maps colors for us */
|
if ( screen_pal ) {
|
||||||
video->flags |= SDL_HWPALETTE;
|
/* BitBlt() maps colors for us */
|
||||||
|
video->flags |= SDL_HWPALETTE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#ifndef _WIN32_WCE
|
#ifndef _WIN32_WCE
|
||||||
/* Resize the window */
|
/* Resize the window */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue