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

bluegr noreply at scummvm.org
Mon Jan 6 15:03:06 UTC 2025


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:
cd77a78f5f GRAPHICS: Fix potential bug in drawThickLine2


Commit: cd77a78f5fc7fbcc560c0a65392ba11077c25105
    https://github.com/scummvm/scummvm/commit/cd77a78f5fc7fbcc560c0a65392ba11077c25105
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2025-01-06T17:03:03+02:00

Commit Message:
GRAPHICS: Fix potential bug in drawThickLine2

Changed paths:
    graphics/primitives.cpp


diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp
index a5448be1ef3..fa71bb4d061 100644
--- a/graphics/primitives.cpp
+++ b/graphics/primitives.cpp
@@ -148,7 +148,7 @@ void Primitives::drawThickLine2(int x1, int y1, int x2, int y2, int thick, uint3
 		/* Set up line thickness */
 		wstart = y - wid / 2;
 		for (w = wstart; w < wstart + wid; w++)
-			drawPoint(x, y, color, data);
+			drawPoint(x, w, color, data);
 
 		if (((y2 - y1) * ydirflag) > 0) {
 			while (x < xend) {




More information about the Scummvm-git-logs mailing list