Răsfoiți Sursa

Fixed bug 5321 - crash in SDL_ConvertSurface with RLE surfaces
keep RLE information in flags when converting the surface

Sylvain Becker 4 ani în urmă
părinte
comite
19a65a46a6
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/video/SDL_surface.c

+ 1 - 1
src/video/SDL_surface.c

@@ -1026,7 +1026,7 @@ SDL_ConvertSurface(SDL_Surface * surface, const SDL_PixelFormat * format,
     surface->map->info.g = 0xFF;
     surface->map->info.b = 0xFF;
     surface->map->info.a = 0xFF;
-    surface->map->info.flags = 0;
+    surface->map->info.flags = (copy_flags & (SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY));
     SDL_InvalidateMap(surface->map);
 
     /* Copy over the image data */