[Scummvm-git-logs] scummvm master -> ca1b5346cb6c8c281a03923e0a72486e8b380179

SupSuper supsuper at gmail.com
Tue Jul 27 06:04:39 UTC 2021


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:
ca1b5346cb TRECISION: Fix drawObj condition


Commit: ca1b5346cb6c8c281a03923e0a72486e8b380179
    https://github.com/scummvm/scummvm/commit/ca1b5346cb6c8c281a03923e0a72486e8b380179
Author: SupSuper (supsuper at gmail.com)
Date: 2021-07-27T07:03:44+01:00

Commit Message:
TRECISION: Fix drawObj condition

Changed paths:
    engines/trecision/graphics.cpp


diff --git a/engines/trecision/graphics.cpp b/engines/trecision/graphics.cpp
index 6ddb1f5aeb..60b95e25da 100644
--- a/engines/trecision/graphics.cpp
+++ b/engines/trecision/graphics.cpp
@@ -110,7 +110,7 @@ void GraphicsManager::addDirtyRect(Common::Rect rect, bool translateRect) {
 }
 
 void GraphicsManager::drawObj(int index, bool mask, Common::Rect drawRect, Common::Rect drawObjRect, bool includeDirtyRect) {
-	if (drawObjRect.left > MAXX || drawObjRect.top > MAXX || drawObjRect.right > MAXX || drawObjRect.bottom > MAXX)
+	if (drawObjRect.left > MAXX || drawObjRect.top > MAXY)
 		return;
 
 	// If we have a valid object, draw it, otherwise erase it




More information about the Scummvm-git-logs mailing list