aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-01-23 01:32:51 +0100
committerEinar Johan Trøan Sømåen2013-01-23 01:32:51 +0100
commit53f0871b075546fc540b02dfcf8ee65fafbe6134 (patch)
tree8f13bea5cd7414d85e08c7bc33eb1140fdded0b4 /engines/wintermute/base
parent57bc6374f4e03dde194830b80914915a200dba54 (diff)
downloadscummvm-rg350-53f0871b075546fc540b02dfcf8ee65fafbe6134.tar.gz
scummvm-rg350-53f0871b075546fc540b02dfcf8ee65fafbe6134.tar.bz2
scummvm-rg350-53f0871b075546fc540b02dfcf8ee65fafbe6134.zip
WINTERMUTE: Store savegame-thumbs in game-specific sizes too.
Diffstat (limited to 'engines/wintermute/base')
-rw-r--r--engines/wintermute/base/base_save_thumb_helper.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/engines/wintermute/base/base_save_thumb_helper.cpp b/engines/wintermute/base/base_save_thumb_helper.cpp
index d4df1dffb4..17376e4c49 100644
--- a/engines/wintermute/base/base_save_thumb_helper.cpp
+++ b/engines/wintermute/base/base_save_thumb_helper.cpp
@@ -97,15 +97,12 @@ bool BaseSaveThumbHelper::storeThumbnail(bool doFlip) {
//////////////////////////////////////////////////////////////////////////
bool BaseSaveThumbHelper::storeScummVMThumbNail(bool doFlip) {
- delete _thumbnail;
- _thumbnail = NULL;
+ delete _scummVMThumb;
+ _scummVMThumb = NULL;
- if (_gameRef->_thumbnailWidth > 0 && _gameRef->_thumbnailHeight > 0) {
-
- _scummVMThumb = storeThumb(doFlip, kThumbnailWidth, kThumbnailHeight2);
- if (!_scummVMThumb) {
- return STATUS_FAILED;
- }
+ _scummVMThumb = storeThumb(doFlip, kThumbnailWidth, kThumbnailHeight2);
+ if (!_scummVMThumb) {
+ return STATUS_FAILED;
}
return STATUS_OK;
}