aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-02-21 20:46:46 -0500
committerPaul Gilbert2016-02-21 20:46:46 -0500
commitb12cb7308ab3260e84520b3de2d34dbd6d7cd77d (patch)
treea6a38e0e875b661cffa958d639da5fc1264f5921
parentf7025c4cab7a1e115b31f1283bea3797876dbf54 (diff)
downloadscummvm-rg350-b12cb7308ab3260e84520b3de2d34dbd6d7cd77d.tar.gz
scummvm-rg350-b12cb7308ab3260e84520b3de2d34dbd6d7cd77d.tar.bz2
scummvm-rg350-b12cb7308ab3260e84520b3de2d34dbd6d7cd77d.zip
SHERLOCK: RT: Fix tearing in ending credits
-rw-r--r--engines/sherlock/tattoo/widget_credits.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sherlock/tattoo/widget_credits.cpp b/engines/sherlock/tattoo/widget_credits.cpp
index b8e297709f..2b37dd304b 100644
--- a/engines/sherlock/tattoo/widget_credits.cpp
+++ b/engines/sherlock/tattoo/widget_credits.cpp
@@ -185,8 +185,6 @@ void WidgetCredits::blitCredits() {
screen.slamRect(r);
}
-
- _creditLines[idx]._position.y -= _creditSpeed;
}
}
@@ -200,7 +198,10 @@ void WidgetCredits::eraseCredits() {
r.moveTo(_creditLines[idx]._position.x, _creditLines[idx]._position.y - 1 + _creditSpeed);
screen.restoreBackground(r);
+ screen.slamRect(r);
}
+
+ _creditLines[idx]._position.y -= _creditSpeed;
}
if (_creditLines[_creditLines.size() - 1]._position.y < -_creditSpeed) {