1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

revert algoritm on optimized

This commit is contained in:
Laserlicht
2025-07-14 01:40:56 +02:00
parent be56d6eff4
commit 2607767ab7
5 changed files with 13 additions and 17 deletions

View File

@@ -40,13 +40,13 @@ class SDLImageShared final : public ISharedImage, public std::enable_shared_from
// Keep the original palette, in order to do color switching operation
void savePalette();
void optimizeSurface(int keepBorder = 0);
void optimizeSurface();
public:
//Load image from def file
SDLImageShared(const CDefFile *data, size_t frame, size_t group=0);
//Load from bitmap file
SDLImageShared(const ImagePath & filename, int keepBorder = 0);
SDLImageShared(const ImagePath & filename, bool optimizeImage=true);
//Create using existing surface, extraRef will increase refcount on SDL_Surface
SDLImageShared(SDL_Surface * from);
~SDLImageShared();