[Scummvm-git-logs] scummvm master -> 8beec5ae7ba8055ab29d2b836f320615818e09ba

aquadran aquadran at gmail.com
Sun Mar 7 15:59:28 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:
8beec5ae7b ICB: Fixed regression GFX glitch by properly fixing variable shadowing


Commit: 8beec5ae7ba8055ab29d2b836f320615818e09ba
    https://github.com/scummvm/scummvm/commit/8beec5ae7ba8055ab29d2b836f320615818e09ba
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-03-07T16:59:23+01:00

Commit Message:
ICB: Fixed regression GFX glitch by properly fixing variable shadowing

Changed paths:
    engines/icb/gfx/gfxstub_rev.cpp


diff --git a/engines/icb/gfx/gfxstub_rev.cpp b/engines/icb/gfx/gfxstub_rev.cpp
index 8ecf992f50..f920690e8f 100644
--- a/engines/icb/gfx/gfxstub_rev.cpp
+++ b/engines/icb/gfx/gfxstub_rev.cpp
@@ -59,10 +59,10 @@ vertex2D verts[8];
 vertex2D clipverts[8];
 
 int32 SimpleReject(vertex2D *vertices) {
-	int64 l0x = (verts[0].x - vertices[1].x);
-	int64 l0y = (verts[0].y - vertices[1].y);
-	int64 l1x = (verts[2].x - vertices[1].x);
-	int64 l1y = (verts[2].y - vertices[1].y);
+	int64 l0x = (vertices[0].x - vertices[1].x);
+	int64 l0y = (vertices[0].y - vertices[1].y);
+	int64 l1x = (vertices[2].x - vertices[1].x);
+	int64 l1y = (vertices[2].y - vertices[1].y);
 
 	int64 prod1 = (l0x * l1y) >> 32;
 	int64 prod2 = (l1x * l0y) >> 32;




More information about the Scummvm-git-logs mailing list