aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/dialogs.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-11-30 23:15:47 +1100
committerPaul Gilbert2012-11-30 23:15:47 +1100
commitb230dff1e9631cd61775685a9676ec5ab04ff19e (patch)
treeb0f1337932263d3a5cc0f2a01261de00bbcf481c /engines/hopkins/dialogs.cpp
parentb0ce324685882c5e302958f64ad15dc04c0b9eae (diff)
downloadscummvm-rg350-b230dff1e9631cd61775685a9676ec5ab04ff19e.tar.gz
scummvm-rg350-b230dff1e9631cd61775685a9676ec5ab04ff19e.tar.bz2
scummvm-rg350-b230dff1e9631cd61775685a9676ec5ab04ff19e.zip
HOPKINS: Fix savegame thumbnails
Diffstat (limited to 'engines/hopkins/dialogs.cpp')
-rw-r--r--engines/hopkins/dialogs.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/hopkins/dialogs.cpp b/engines/hopkins/dialogs.cpp
index 645f06dc65..436e4f694a 100644
--- a/engines/hopkins/dialogs.cpp
+++ b/engines/hopkins/dialogs.cpp
@@ -653,7 +653,10 @@ void DialogsManager::LOAD_SAUVE(int a1) {
for (slotNumber = 1; slotNumber <= 6; ++slotNumber) {
if (_vm->_saveLoadManager.readSavegameHeader(slotNumber, header)) {
- thumb = (byte *)header.thumbnail->pixels;
+ Graphics::Surface thumb8;
+ _vm->_saveLoadManager.convertThumb16To8(header.thumbnail, &thumb8);
+
+ thumb = (byte *)thumb8.pixels;
switch (slotNumber) {
case 1:
@@ -676,6 +679,8 @@ void DialogsManager::LOAD_SAUVE(int a1) {
break;
}
+ thumb8.free();
+ header.thumbnail->free();
delete header.thumbnail;
}
}