diff --git a/src/video/graphic.cpp b/src/video/graphic.cpp index b139eab94..033027fa4 100644 --- a/src/video/graphic.cpp +++ b/src/video/graphic.cpp @@ -496,7 +496,9 @@ global void ResizeGraphic(Graphic* g, int w, int h) SDL_UnlockSurface(g->Surface); memcpy(pal, g->Surface->format->palette->colors, sizeof(SDL_Color) * 256); - VideoPaletteListRemove(g->Surface); + if (graphic->Surface->format->BytesPerPixel == 1) { + VideoPaletteListRemove(g->Surface); + } ckey = g->Surface->format->colorkey; SDL_FreeSurface(g->Surface);