aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/console.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-10-19 02:01:28 +0300
committerFilippos Karapetis2011-10-19 02:02:04 +0300
commitfa43ded59051b68f063dbd63783cb8d6a95aac8c (patch)
tree29c43ff76c4b71bf5aa36244665a720fb2917708 /engines/sci/console.cpp
parentd7f80fadab3f02725beb2d7ede5aef8cb13dc3d5 (diff)
downloadscummvm-rg350-fa43ded59051b68f063dbd63783cb8d6a95aac8c.tar.gz
scummvm-rg350-fa43ded59051b68f063dbd63783cb8d6a95aac8c.tar.bz2
scummvm-rg350-fa43ded59051b68f063dbd63783cb8d6a95aac8c.zip
SCI: The draw_pic console command now works in SCI32
Moreover, the overlay is temporarily hidden to show the picture
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r--engines/sci/console.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 2f69d5caa1..a44c661561 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -1498,10 +1498,22 @@ bool Console::cmdDrawPic(int argc, const char **argv) {
return true;
}
- uint16 resourceId = atoi(argv[1]);
+#ifndef USE_TEXT_CONSOLE_FOR_DEBUGGER
+ // If a graphical debugger overlay is used, hide it here, so that the
+ // results can be drawn.
+ g_system->hideOverlay();
+#endif
+ uint16 resourceId = atoi(argv[1]);
_engine->_gfxPaint->kernelDrawPicture(resourceId, 100, false, false, false, 0);
_engine->_gfxScreen->copyToScreen();
+ _engine->sleep(2000);
+
+#ifndef USE_TEXT_CONSOLE_FOR_DEBUGGER
+ // Show the graphical debugger overlay
+ g_system->showOverlay();
+#endif
+
return true;
}