[Scummvm-cvs-logs] scummvm master -> 7ab6dfc00e9392e2a1560de05f1d717ec0c79a72

bluegr md5 at scummvm.org
Sun Jun 12 14:10:31 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7ab6dfc00e SCI: Fixed the show_saved_bits console command


Commit: 7ab6dfc00e9392e2a1560de05f1d717ec0c79a72
    https://github.com/scummvm/scummvm/commit/7ab6dfc00e9392e2a1560de05f1d717ec0c79a72
Author: md5 (md5 at scummvm.org)
Date: 2011-06-12T05:07:42-07:00

Commit Message:
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

Changed paths:
    engines/sci/console.cpp



diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 55e820a..32cb545 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;
 }
 






More information about the Scummvm-git-logs mailing list