mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
TOLTECS: Fix Compilation due to Graphics::loadThumbnail() API change.
This commit is contained in:
parent
9b885d0c50
commit
86e6ec89ef
@ -53,12 +53,7 @@ ToltecsEngine::kReadSaveHeaderError ToltecsEngine::readSaveHeader(Common::Seekab
|
||||
header.description += (char)in->readByte();
|
||||
|
||||
if (loadThumbnail) {
|
||||
header.thumbnail = new Graphics::Surface();
|
||||
assert(header.thumbnail);
|
||||
if (!Graphics::loadThumbnail(*in, *header.thumbnail)) {
|
||||
delete header.thumbnail;
|
||||
header.thumbnail = 0;
|
||||
}
|
||||
header.thumbnail = Graphics::loadThumbnail(*in);
|
||||
} else {
|
||||
Graphics::skipThumbnail(*in);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user