[Scummvm-git-logs] scummvm branch-2-6 -> 478bb3214c5818b387997b4a5d2bbf1c81fc694e

mduggan noreply at scummvm.org
Tue Sep 27 00:34:43 UTC 2022


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:
478bb3214c ULTIMA8: Fix incorrect Rect clipping bottom calculation


Commit: 478bb3214c5818b387997b4a5d2bbf1c81fc694e
    https://github.com/scummvm/scummvm/commit/478bb3214c5818b387997b4a5d2bbf1c81fc694e
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2022-09-27T09:34:33+09:00

Commit Message:
ULTIMA8: Fix incorrect Rect clipping bottom calculation

When minimap was moved off the screen, the crosshair was incorrectly was drawn
over the whole height of the minimap.  This fixes bug #13850.

Changed paths:
    engines/ultima/ultima8/misc/rect.h


diff --git a/engines/ultima/ultima8/misc/rect.h b/engines/ultima/ultima8/misc/rect.h
index caa9789de63..29e77af9ddb 100644
--- a/engines/ultima/ultima8/misc/rect.h
+++ b/engines/ultima/ultima8/misc/rect.h
@@ -90,7 +90,7 @@ struct Rect {
 		if (left < r.left) left = r.left;
 		else if (left > r.right) left = r.right;
 
-		if (bottom < r.top) bottom = r.bottom;
+		if (bottom < r.top) bottom = r.top;
 		else if (bottom > r.bottom) bottom = r.bottom;
 
 		if (right < r.left) right = r.left;




More information about the Scummvm-git-logs mailing list