diff options
author | md5 | 2011-06-12 15:07:42 +0300 |
---|---|---|
committer | md5 | 2011-06-12 15:07:42 +0300 |
commit | 7ab6dfc00e9392e2a1560de05f1d717ec0c79a72 (patch) | |
tree | 13e5b66040b4836e24e590c721e5b26470caa742 /engines/sci | |
parent | 4ec20f857fd9d7d741233678c9574aa3f9e28eba (diff) | |
download | scummvm-rg350-7ab6dfc00e9392e2a1560de05f1d717ec0c79a72.tar.gz scummvm-rg350-7ab6dfc00e9392e2a1560de05f1d717ec0c79a72.tar.bz2 scummvm-rg350-7ab6dfc00e9392e2a1560de05f1d717ec0c79a72.zip |
SCI: Fixed the show_saved_bits console command
This is achieved by hiding the graphical debugger overlay temporarily in
order to show the command's results
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/console.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 55e820ace1..32cb5459f6 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -1738,6 +1738,12 @@ bool Console::cmdShowSavedBits(int argc, const char **argv) { assert(bakMemory); _engine->_gfxScreen->bitsSave(rect, bakMask, bakMemory); +#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 + const int paintCount = 3; for (int i = 0; i < paintCount; ++i) { _engine->_gfxScreen->bitsRestore(memoryPtr); @@ -1757,6 +1763,11 @@ bool Console::cmdShowSavedBits(int argc, const char **argv) { _engine->_gfxPaint16->bitsFree(bakScreen); +#ifndef USE_TEXT_CONSOLE_FOR_DEBUGGER + // Show the graphical debugger overlay + g_system->showOverlay(); +#endif + return true; } |