diff options
author | Einar Johan Trøan Sømåen | 2013-01-23 01:32:51 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-01-23 01:32:51 +0100 |
commit | 53f0871b075546fc540b02dfcf8ee65fafbe6134 (patch) | |
tree | 8f13bea5cd7414d85e08c7bc33eb1140fdded0b4 /engines | |
parent | 57bc6374f4e03dde194830b80914915a200dba54 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/wintermute/base/base_save_thumb_helper.cpp | 13 |
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; } |