From d077fc0fc70896344a6963197b8617673fc13ff5 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Fri, 7 Oct 2016 01:35:17 +0200 Subject: 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? --- engines/wintermute/base/base_game.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines/wintermute/base/base_game.cpp') diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp index 1af7e2b56d..ef3cc2d84f 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"; -- cgit v1.2.3