[Scummvm-cvs-logs] scummvm master -> b12cb7308ab3260e84520b3de2d34dbd6d7cd77d

dreammaster dreammaster at scummvm.org
Mon Feb 22 02:52:52 CET 2016


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:
b12cb7308a SHERLOCK: RT: Fix tearing in ending credits


Commit: b12cb7308ab3260e84520b3de2d34dbd6d7cd77d
    https://github.com/scummvm/scummvm/commit/b12cb7308ab3260e84520b3de2d34dbd6d7cd77d
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-02-21T20:46:46-05:00

Commit Message:
SHERLOCK: RT: Fix tearing in ending credits

Changed paths:
    engines/sherlock/tattoo/widget_credits.cpp



diff --git a/engines/sherlock/tattoo/widget_credits.cpp b/engines/sherlock/tattoo/widget_credits.cpp
index b8e2977..2b37dd3 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) {






More information about the Scummvm-git-logs mailing list