[Scummvm-git-logs] scummvm master -> d077fc0fc70896344a6963197b8617673fc13ff5
somaen
einarjohants at gmail.com
Fri Oct 7 01:37:12 CEST 2016
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:
d077fc0fc7 WINTERMUTE: Change in-engine thumbnail-defaults.
Commit: d077fc0fc70896344a6963197b8617673fc13ff5
https://github.com/scummvm/scummvm/commit/d077fc0fc70896344a6963197b8617673fc13ff5
Author: Einar Johan Trøan Sømåen (einarjohants at gmail.com)
Date: 2016-10-07T01:35:17+02:00
Commit Message:
WINTERMUTE: Change in-engine thumbnail-defaults.
Instead of the engine-based 0, we now default to
kThumbnailWidth/kThumbnailHeight2, as values of 0
here disable thumbnails in the engine.
TODO: Perhaps consider looking into always running the
thumbnail-generation even if the sizes are 0?
Changed paths:
engines/wintermute/base/base_game.cpp
diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp
index 1af7e2b..ef3cc2d 100644
--- a/engines/wintermute/base/base_game.cpp
+++ b/engines/wintermute/base/base_game.cpp
@@ -70,6 +70,7 @@
#include "common/keyboard.h"
#include "common/system.h"
#include "common/file.h"
+#include "graphics/scaler.h"
#if EXTENDED_DEBUGGER_ENABLED
#include "engines/wintermute/base/scriptables/debuggable/debuggable_script_engine.h"
@@ -171,7 +172,12 @@ BaseGame::BaseGame(const Common::String &targetName) : BaseObject(this), _target
_forceNonStreamedSounds = false;
- _thumbnailWidth = _thumbnailHeight = 0;
+ // These are NOT the actual engine defaults (they are 0, 0),
+ // but we have a use for thumbnails even for games that don't
+ // use them in-game, hence we set a default that is suitably
+ // sized for the GMM (expecting 4:3 ratio)
+ _thumbnailWidth = kThumbnailWidth;
+ _thumbnailHeight = kThumbnailHeight2;
_localSaveDir = "saves";
More information about the Scummvm-git-logs
mailing list