Skip to content

Commit

Permalink
Fixed crash in SDL_SetGammaRamp()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 25, 2008
1 parent a759402 commit 0eee8d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/video/windib/SDL_dibvideo.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 0eee8d8

Please sign in to comment.