From 877474cd327c1fab98c296b4786f3c98b9c93714 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 22 Feb 2015 01:43:02 +0100 Subject: 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. --- engines/mads/menu_views.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/mads/menu_views.cpp') diff --git a/engines/mads/menu_views.cpp b/engines/mads/menu_views.cpp index 8f1fd2d7a5..5a0c7ee92e 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, -- cgit v1.2.3