diff options
author | Martin Kiewitz | 2010-02-05 15:53:36 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-02-05 15:53:36 +0000 |
commit | 03dd0ac7bbfa080699f1fd0f1f54303413364494 (patch) | |
tree | 47edea13ddd505f1a491e44de0e19155c157808d | |
parent | ab2941bb520583be93ca9520497f6c3718194fa2 (diff) | |
download | scummvm-rg350-03dd0ac7bbfa080699f1fd0f1f54303413364494.tar.gz scummvm-rg350-03dd0ac7bbfa080699f1fd0f1f54303413364494.tar.bz2 scummvm-rg350-03dd0ac7bbfa080699f1fd0f1f54303413364494.zip |
SCI: screen specific debug functions are now called directly w/o SciGui/32
svn-id: r47905
-rw-r--r-- | engines/sci/console.cpp | 6 | ||||
-rw-r--r-- | engines/sci/graphics/gui.cpp | 10 | ||||
-rw-r--r-- | engines/sci/graphics/gui.h | 2 | ||||
-rw-r--r-- | engines/sci/graphics/screen.cpp | 2 | ||||
-rw-r--r-- | engines/sci/graphics/screen.h | 2 | ||||
-rw-r--r-- | engines/sci/sci.cpp | 2 |
6 files changed, 6 insertions, 18 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index a2c94b5878..19022e8b64 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -1121,8 +1121,8 @@ bool Console::cmdUndither(int argc, const char **argv) { } bool flag = atoi(argv[1]) ? true : false; - - return _engine->_gamestate->_gui->debugUndither(flag); + _engine->_gamestate->_gfxScreen->debugUnditherSetState(flag); + return false; } bool Console::cmdPicVisualize(int argc, const char **argv) { @@ -1421,7 +1421,7 @@ bool Console::cmdShowMap(int argc, const char **argv) { case 1: case 2: case 3: - return _engine->_gamestate->_gui->debugShowMap(map); + _engine->_gamestate->_gfxScreen->debugShowMap(map); break; default: diff --git a/engines/sci/graphics/gui.cpp b/engines/sci/graphics/gui.cpp index 741b5d7e82..785dd32392 100644 --- a/engines/sci/graphics/gui.cpp +++ b/engines/sci/graphics/gui.cpp @@ -439,16 +439,6 @@ void SciGui::portraitShow(Common::String resourceName, Common::Point position, u void SciGui::portraitUnload(uint16 portraitId) { } -bool SciGui::debugUndither(bool flag) { - _screen->unditherSetState(flag); - return false; -} - -bool SciGui::debugShowMap(int mapNo) { - _screen->debugShowMap(mapNo); - return false; -} - bool SciGui::debugEGAdrawingVisualize(bool state) { _paint16->setEGAdrawingVisualize(state); return false; diff --git a/engines/sci/graphics/gui.h b/engines/sci/graphics/gui.h index 569cc323e3..2bf7b8a92e 100644 --- a/engines/sci/graphics/gui.h +++ b/engines/sci/graphics/gui.h @@ -95,8 +95,6 @@ public: virtual void portraitShow(Common::String resourceName, Common::Point position, uint16 resourceNum, uint16 noun, uint16 verb, uint16 cond, uint16 seq); virtual void portraitUnload(uint16 portraitId); - virtual bool debugUndither(bool flag); - virtual bool debugShowMap(int mapNo); virtual bool debugEGAdrawingVisualize(bool state); // FIXME: Don't store EngineState diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp index 207c459687..211d91d67e 100644 --- a/engines/sci/graphics/screen.cpp +++ b/engines/sci/graphics/screen.cpp @@ -484,7 +484,7 @@ void GfxScreen::dither(bool addToFlag) { } } -void GfxScreen::unditherSetState(bool flag) { +void GfxScreen::debugUnditherSetState(bool flag) { _unditherState = flag; } diff --git a/engines/sci/graphics/screen.h b/engines/sci/graphics/screen.h index 55fd0b4828..f5e64986ea 100644 --- a/engines/sci/graphics/screen.h +++ b/engines/sci/graphics/screen.h @@ -92,7 +92,7 @@ public: void scale2x(byte *src, byte *dst, int16 srcWidth, int16 srcHeight); void dither(bool addToFlag); - void unditherSetState(bool flag); + void debugUnditherSetState(bool flag); int16 *unditherGetMemorial(); void debugShowMap(int mapNo); diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 3b6d0f8230..21b265f03d 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -221,7 +221,7 @@ Common::Error SciEngine::run() { _gamestate->_soundCmd = new SoundCommandParser(_resMan, segMan, _kernel, _audio, soundVersion); - screen->unditherSetState(ConfMan.getBool("undither")); + screen->debugUnditherSetState(ConfMan.getBool("undither")); #ifdef USE_OLD_MUSIC_FUNCTIONS if (game_init_sound(_gamestate, 0, soundVersion)) { |