diff options
author | Einar Johan Trøan Sømåen | 2016-10-07 01:35:17 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2016-10-07 01:35:17 +0200 |
commit | d077fc0fc70896344a6963197b8617673fc13ff5 (patch) | |
tree | a25bea1e18e783de98fe300d86641c420b6bd43b | |
parent | 1eca88cb398c52fc62424708b8d99ac28ab65433 (diff) | |
download | scummvm-rg350-d077fc0fc70896344a6963197b8617673fc13ff5.tar.gz scummvm-rg350-d077fc0fc70896344a6963197b8617673fc13ff5.tar.bz2 scummvm-rg350-d077fc0fc70896344a6963197b8617673fc13ff5.zip |
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?
-rw-r--r-- | engines/wintermute/base/base_game.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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"; |