mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
PRIVATE: fixed save game bug
This commit is contained in:
parent
0578120fb4
commit
3d247f33e1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user