aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/menu_views.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2015-02-22 01:43:02 +0100
committerTorbjörn Andersson2015-02-22 01:43:02 +0100
commit877474cd327c1fab98c296b4786f3c98b9c93714 (patch)
treeb5bb158c1fa83314263560085edb9f40b20d26e9 /engines/mads/menu_views.cpp
parent85aecfaad4d9a0067a10580cea587996f2f37461 (diff)
downloadscummvm-rg350-877474cd327c1fab98c296b4786f3c98b9c93714.tar.gz
scummvm-rg350-877474cd327c1fab98c296b4786f3c98b9c93714.tar.bz2
scummvm-rg350-877474cd327c1fab98c296b4786f3c98b9c93714.zip
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.
Diffstat (limited to 'engines/mads/menu_views.cpp')
-rw-r--r--engines/mads/menu_views.cpp2
1 files changed, 1 insertions, 1 deletions
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,