PRIVATE: fixed save game bug

This commit is contained in:
neuromancer 2021-11-28 11:01:00 +01:00
parent 0578120fb4
commit 3d247f33e1

View File

@ -41,13 +41,9 @@ Common::Error PrivateMetaEngine::createInstance(OSystem *syst, Engine **engine,
}
void PrivateMetaEngine::getSavegameThumbnail(Graphics::Surface &thumb) {
Graphics::Surface *vs = Private::g_private->decodeImage(Private::g_private->_nextVS, nullptr);
Graphics::Surface *svs = vs->scale(kThumbnailWidth, kThumbnailHeight2);
thumb.copyFrom(*svs);
svs->free();
delete svs;
byte *palette;
Graphics::Surface *vs = Private::g_private->decodeImage(Private::g_private->_nextVS, &palette);
::createThumbnail(&thumb, (const uint8 *)vs->getPixels(), vs->w, vs->h, palette);
vs->free();
delete vs;
}