Remove unused code and no longer needed caching

This commit is contained in:
Ivan Savenko committed 2024-07-19 10:08:50 +00:00
1 parent 47de9a62dc
commit a8a330f39f
14 files changed
+29 -73

No files matched your search

+2 -2
View File
@@ -32,8 +32,8 @@ void SDLImageLoader::init(Point SpriteSize, Point Margins, Point FullSize, SDL_C
image->fullSize = FullSize;
//Prepare surface
SDL_Palette * p = SDL_AllocPalette(SDLImageConst::DEFAULT_PALETTE_COLORS);
SDL_SetPaletteColors(p, pal, 0, SDLImageConst::DEFAULT_PALETTE_COLORS);
SDL_Palette * p = SDL_AllocPalette(DEFAULT_PALETTE_COLORS);
SDL_SetPaletteColors(p, pal, 0, DEFAULT_PALETTE_COLORS);
SDL_SetSurfacePalette(image->surf, p);
SDL_FreePalette(p);