[Scummvm-cvs-logs] scummvm master -> 53f0871b075546fc540b02dfcf8ee65fafbe6134

somaen einarjohants at gmail.com
Wed Jan 23 01:33:45 CET 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
53f0871b07 WINTERMUTE: Store savegame-thumbs in game-specific sizes too.


Commit: 53f0871b075546fc540b02dfcf8ee65fafbe6134
    https://github.com/scummvm/scummvm/commit/53f0871b075546fc540b02dfcf8ee65fafbe6134
Author: Einar Johan Trøan Sømåen (einarjohants at gmail.com)
Date: 2013-01-22T16:32:51-08:00

Commit Message:
WINTERMUTE: Store savegame-thumbs in game-specific sizes too.

Changed paths:
    engines/wintermute/base/base_save_thumb_helper.cpp



diff --git a/engines/wintermute/base/base_save_thumb_helper.cpp b/engines/wintermute/base/base_save_thumb_helper.cpp
index d4df1df..17376e4 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;
 }






More information about the Scummvm-git-logs mailing list