[Scummvm-cvs-logs] scummvm master -> 0b75bf37219cf49f274da330a44e81068152599c

m-kiewitz m_kiewitz at users.sourceforge.net
Tue Feb 2 17:45:12 CET 2016


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:
0b75bf3721 AGI: Render after menu, when playarea starts at 0


Commit: 0b75bf37219cf49f274da330a44e81068152599c
    https://github.com/scummvm/scummvm/commit/0b75bf37219cf49f274da330a44e81068152599c
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2016-02-02T17:44:53+01:00

Commit Message:
AGI: Render after menu, when playarea starts at 0

Fixes graphics glitch for Donald Duck

Changed paths:
    engines/agi/menu.cpp



diff --git a/engines/agi/menu.cpp b/engines/agi/menu.cpp
index 97b59d8..df77587 100644
--- a/engines/agi/menu.cpp
+++ b/engines/agi/menu.cpp
@@ -356,7 +356,13 @@ void GfxMenu::execute() {
 	if (_text->statusEnabled()) {
 		_text->statusDraw();
 	} else {
-		_text->clearLine(0, 0);
+		if (_text->getWindowRowMin() == 0) {
+			// Playarea starts right at the stop, so instead of clearing that part, render it from playarea
+			// Required for at least Donald Duck
+			_gfx->render_Block(0, (1 * FONT_VISUAL_HEIGHT) - 1, SCRIPT_WIDTH, FONT_VISUAL_HEIGHT);
+		} else {
+			_text->clearLine(0, 0);
+		}
 	}
 }
 






More information about the Scummvm-git-logs mailing list