mirror of
https://github.com/yawut/SDL.git
synced 2026-08-21 16:24:37 -05:00
Minor crash bugfix
This commit is contained in:
@@ -1134,6 +1134,9 @@ int SDL_SetPalette(SDL_Surface *screen, int which,
|
||||
int gotall;
|
||||
int palsize;
|
||||
|
||||
if ( ! current_video ) {
|
||||
return 0;
|
||||
}
|
||||
if ( screen != SDL_PublicSurface ) {
|
||||
/* only screens have physical palettes */
|
||||
which &= ~SDL_PHYSPAL;
|
||||
|
||||
Reference in New Issue
Block a user