Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 34:27cb016592f9
Minor crash bugfix
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Wed, 23 May 2001 00:06:08 +0000 |
parents | 57bf11a5efd7 |
children | 45b1c4303f87 |
comparison
equal
deleted
inserted
replaced
33:81a7158fa836 | 34:27cb016592f9 |
---|---|
1132 { | 1132 { |
1133 SDL_Palette *pal; | 1133 SDL_Palette *pal; |
1134 int gotall; | 1134 int gotall; |
1135 int palsize; | 1135 int palsize; |
1136 | 1136 |
1137 if ( ! current_video ) { | |
1138 return 0; | |
1139 } | |
1137 if ( screen != SDL_PublicSurface ) { | 1140 if ( screen != SDL_PublicSurface ) { |
1138 /* only screens have physical palettes */ | 1141 /* only screens have physical palettes */ |
1139 which &= ~SDL_PHYSPAL; | 1142 which &= ~SDL_PHYSPAL; |
1140 } else if( (screen->flags & SDL_HWPALETTE) != SDL_HWPALETTE ) { | 1143 } else if( (screen->flags & SDL_HWPALETTE) != SDL_HWPALETTE ) { |
1141 /* hardware palettes required for split colormaps */ | 1144 /* hardware palettes required for split colormaps */ |