diff options
author | Torbjörn Andersson | 2015-02-22 01:43:02 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2015-02-22 01:43:02 +0100 |
commit | 877474cd327c1fab98c296b4786f3c98b9c93714 (patch) | |
tree | b5bb158c1fa83314263560085edb9f40b20d26e9 /engines | |
parent | 85aecfaad4d9a0067a10580cea587996f2f37461 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/mads/menu_views.cpp | 2 |
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, |