diff options
author | Tobia Tesan | 2016-03-29 11:09:54 +0200 |
---|---|---|
committer | Tobia Tesan | 2016-12-26 12:20:56 +0100 |
commit | 42531fb71a3710e190f933c347110e7a468c28e6 (patch) | |
tree | 35b9611cede2667d338320526b0a42a45ffdbb93 | |
parent | a496467fbe0687edc8f72bfb439fe046d44e4391 (diff) | |
download | scummvm-rg350-42531fb71a3710e190f933c347110e7a468c28e6.tar.gz scummvm-rg350-42531fb71a3710e190f933c347110e7a468c28e6.tar.bz2 scummvm-rg350-42531fb71a3710e190f933c347110e7a468c28e6.zip |
WINTERMUTE: Add _bilinearFiltering attribute to BaseGame
-rw-r--r-- | engines/wintermute/base/base_game.cpp | 6 | ||||
-rw-r--r-- | engines/wintermute/base/base_game.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp index ef3cc2d84f..24779b9793 100644 --- a/engines/wintermute/base/base_game.cpp +++ b/engines/wintermute/base/base_game.cpp @@ -361,6 +361,12 @@ bool BaseGame::initConfManSettings() { _debugShowFPS = false; } + if (ConfMan.hasKey("bilinear_filtering")) { + _bilinearFiltering = ConfMan.getBool("bilinear_filtering"); + } else { + _bilinearFiltering = false; + } + if (ConfMan.hasKey("disable_smartcache")) { _smartCache = ConfMan.getBool("disable_smartcache"); } else { diff --git a/engines/wintermute/base/base_game.h b/engines/wintermute/base/base_game.h index 6aacc1feab..46484cc5ca 100644 --- a/engines/wintermute/base/base_game.h +++ b/engines/wintermute/base/base_game.h @@ -101,7 +101,7 @@ public: virtual bool displayDebugInfo(); void setShowFPS(bool enabled) { _debugShowFPS = enabled; } - + bool getBilinearFiltering() { return _bilinearFiltering; } bool getSuspendedRendering() const { return _suspendedRendering; } TTextEncoding _textEncoding; @@ -279,6 +279,7 @@ protected: VideoTheoraPlayer *_theoraPlayer; private: bool _debugShowFPS; + bool _bilinearFiltering; void *_debugLogFile; void DEBUG_DebugDisable(); void DEBUG_DebugEnable(const char *filename = nullptr); |