diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/console.cpp | 18 | ||||
-rw-r--r-- | engines/sci/graphics/gui.cpp | 5 | ||||
-rw-r--r-- | engines/sci/graphics/gui.h | 2 | ||||
-rw-r--r-- | engines/sci/graphics/paint16.cpp | 2 | ||||
-rw-r--r-- | engines/sci/graphics/paint16.h | 2 |
5 files changed, 18 insertions, 11 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 6bd7adfdb7..30791740d0 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -47,6 +47,7 @@ #include "sci/graphics/cursor.h" #include "sci/graphics/screen.h" #include "sci/graphics/paint.h" +#include "sci/graphics/paint16.h" #include "sci/graphics/palette.h" #include "sci/parser/vocabulary.h" @@ -1112,7 +1113,11 @@ bool Console::cmdUndither(int argc, const char **argv) { bool flag = atoi(argv[1]) ? true : false; _engine->_gfxScreen->debugUnditherSetState(flag); - return false; + if (flag) + DebugPrintf("undithering ENABLED\n"); + else + DebugPrintf("undithering DISABLED\n"); + return true; } bool Console::cmdPicVisualize(int argc, const char **argv) { @@ -1124,7 +1129,16 @@ bool Console::cmdPicVisualize(int argc, const char **argv) { bool state = atoi(argv[1]) ? true : false; - return _engine->_gui->debugEGAdrawingVisualize(state); + if (_engine->_resMan->getViewType() == kViewEga) { + _engine->_gfxPaint16->debugSetEGAdrawingVisualize(state); + if (state) + DebugPrintf("picture visualization ENABLED\n"); + else + DebugPrintf("picture visualization DISABLED\n"); + } else { + DebugPrintf("picture visualization only available for EGA games\n"); + } + return true; } bool Console::cmdPlayVideo(int argc, const char **argv) { diff --git a/engines/sci/graphics/gui.cpp b/engines/sci/graphics/gui.cpp index 29ab64ddb2..e427edd732 100644 --- a/engines/sci/graphics/gui.cpp +++ b/engines/sci/graphics/gui.cpp @@ -136,9 +136,4 @@ void SciGui::portraitShow(Common::String resourceName, Common::Point position, u void SciGui::portraitUnload(uint16 portraitId) { } -bool SciGui::debugEGAdrawingVisualize(bool state) { - _paint16->setEGAdrawingVisualize(state); - return false; -} - } // End of namespace Sci diff --git a/engines/sci/graphics/gui.h b/engines/sci/graphics/gui.h index 732e195026..7663036117 100644 --- a/engines/sci/graphics/gui.h +++ b/engines/sci/graphics/gui.h @@ -61,8 +61,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 debugEGAdrawingVisualize(bool state); - // FIXME: Don't store EngineState virtual void resetEngineState(EngineState *s); diff --git a/engines/sci/graphics/paint16.cpp b/engines/sci/graphics/paint16.cpp index d0975f3d3d..a96189dbf0 100644 --- a/engines/sci/graphics/paint16.cpp +++ b/engines/sci/graphics/paint16.cpp @@ -61,7 +61,7 @@ void GfxPaint16::init(GfxAnimate *animate, GfxText16 *text16) { _EGAdrawingVisualize = false; } -void GfxPaint16::setEGAdrawingVisualize(bool state) { +void GfxPaint16::debugSetEGAdrawingVisualize(bool state) { _EGAdrawingVisualize = state; } diff --git a/engines/sci/graphics/paint16.h b/engines/sci/graphics/paint16.h index b18c879387..65f9dd0d9c 100644 --- a/engines/sci/graphics/paint16.h +++ b/engines/sci/graphics/paint16.h @@ -50,7 +50,7 @@ public: void init(GfxAnimate *animate, GfxText16 *text16); - void setEGAdrawingVisualize(bool state); + void debugSetEGAdrawingVisualize(bool state); void drawPicture(GuiResourceId pictureId, int16 animationNr, bool mirroredFlag, bool addToFlag, GuiResourceId paletteId); void drawCelAndShow(GuiResourceId viewId, int16 loopNo, int16 celNo, uint16 leftPos, uint16 topPos, byte priority, uint16 paletteNo, uint16 scaleX = 128, uint16 scaleY = 128); |