[Scummvm-git-logs] scummvm master -> 9891373d20b86dec574f4c767768e5130996340a

dreammaster dreammaster at scummvm.org
Sat Apr 1 02:45:49 CEST 2017


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:
9891373d20 TITANIC: Fix drawing bounds in CSurfaceArea fillRect


Commit: 9891373d20b86dec574f4c767768e5130996340a
    https://github.com/scummvm/scummvm/commit/9891373d20b86dec574f4c767768e5130996340a
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-03-31T20:45:41-04:00

Commit Message:
TITANIC: Fix drawing bounds in CSurfaceArea fillRect

Changed paths:
    engines/titanic/star_control/surface_area.cpp


diff --git a/engines/titanic/star_control/surface_area.cpp b/engines/titanic/star_control/surface_area.cpp
index 4536d7b..762d28c 100644
--- a/engines/titanic/star_control/surface_area.cpp
+++ b/engines/titanic/star_control/surface_area.cpp
@@ -170,7 +170,7 @@ double CSurfaceArea::fillRect(const FRect &rect) {
 	}
 
 	Common::Rect rr((int)(MIN(r.left, r.right) - 0.5), (int)(MIN(r.top, r.bottom) - 0.5),
-		(int)(MAX(r.left, r.right) - 0.5), (int)(MAX(r.top, r.bottom) - 0.5));
+		(int)(MAX(r.left, r.right) - 0.5) + 1, (int)(MAX(r.top, r.bottom) - 0.5) + 1);
 	
 	Graphics::Surface s;
 	s.setPixels(_pixelsPtr);





More information about the Scummvm-git-logs mailing list