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

dreammaster dreammaster at scummvm.org
Sun Aug 2 04:31:25 CEST 2015


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:
e00a9f338c SHERLOCK: RT: Fix erasing backgrounds when running animations


Commit: e00a9f338ca8f3e458793799f7f136eb8e7d4212
    https://github.com/scummvm/scummvm/commit/e00a9f338ca8f3e458793799f7f136eb8e7d4212
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-08-01T22:30:24-04:00

Commit Message:
SHERLOCK: RT: Fix erasing backgrounds when running animations

Changed paths:
    engines/sherlock/screen.cpp



diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp
index 13f6fec..7c2b718 100644
--- a/engines/sherlock/screen.cpp
+++ b/engines/sherlock/screen.cpp
@@ -439,7 +439,8 @@ void Screen::flushScaleImage(ImageFrame *frame, const Common::Point &pt, int16 *
 }
 
 void Screen::flushImage(ImageFrame *frame, const Common::Point &pt, Common::Rect &newBounds, int scaleVal) {
-	Common::Point newPos, newSize;
+	Common::Point newPos(newBounds.left, newBounds.top);
+	Common::Point newSize(newBounds.width(), newBounds.height());
 
 	if (scaleVal == SCALE_THRESHOLD)
 		flushImage(frame, pt, &newPos.x, &newPos.y, &newSize.x, &newSize.y);






More information about the Scummvm-git-logs mailing list