[Scummvm-cvs-logs] scummvm master -> 877474cd327c1fab98c296b4786f3c98b9c93714

eriktorbjorn eriktorbjorn at telia.com
Sun Feb 22 01:45:33 CET 2015


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:
877474cd32 MADS: Allow text to scroll off screen before removing it


Commit: 877474cd327c1fab98c296b4786f3c98b9c93714
    https://github.com/scummvm/scummvm/commit/877474cd327c1fab98c296b4786f3c98b9c93714
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2015-02-22T01:43:02+01:00

Commit Message:
MADS: Allow text to scroll off screen before removing it

For example in the credits scroll. Clipping was already done
elsewhere, so this really is just a change in how soon the line is
removed from the list of text to display.

Changed paths:
    engines/mads/menu_views.cpp



diff --git a/engines/mads/menu_views.cpp b/engines/mads/menu_views.cpp
index 8f1fd2d..5a0c7ee 100644
--- a/engines/mads/menu_views.cpp
+++ b/engines/mads/menu_views.cpp
@@ -426,7 +426,7 @@ void TextView::doFrame() {
 			scene._textDisplay.expire(tl._textDisplayIndex);
 
 		tl._pos.y--;
-		if (tl._pos.y < 0) {
+		if (tl._pos.y + _font->getHeight() < 0) {
 			_textLines.remove_at(i);
 		} else {
 			tl._textDisplayIndex = scene._textDisplay.add(tl._pos.x, tl._pos.y,






More information about the Scummvm-git-logs mailing list