[Scummvm-cvs-logs] scummvm master -> 8605b6da8524f22b79188d75821a258157881ad7
sev-
sev at scummvm.org
Thu Aug 25 12:26:28 CEST 2016
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:
8605b6da85 GRAPHICS: Correcting think line thickness
Commit: 8605b6da8524f22b79188d75821a258157881ad7
https://github.com/scummvm/scummvm/commit/8605b6da8524f22b79188d75821a258157881ad7
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-08-25T12:25:58+02:00
Commit Message:
GRAPHICS: Correcting think line thickness
Changed paths:
graphics/primitives.cpp
diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp
index ee24020..8663a61 100644
--- a/graphics/primitives.cpp
+++ b/graphics/primitives.cpp
@@ -109,12 +109,12 @@ void drawThickLine2(int x1, int y1, int x2, int y2, int thick, int color, void (
if (dx == 0) {
int xn = x1 - thick / 2;
- Common::Rect r(xn, MIN(y1, y2), xn + thick, MAX(y1, y2));
+ Common::Rect r(xn, MIN(y1, y2), xn + thick - 1, MAX(y1, y2));
drawFilledRect(r, color, plotProc, data);
return;
} else if (dy == 0) {
int yn = y1 - thick / 2;
- Common::Rect r(MIN(x1, x2), yn, MAX(x1, x2), yn + thick);
+ Common::Rect r(MIN(x1, x2), yn, MAX(x1, x2), yn + thick - 1);
drawFilledRect(r, color, plotProc, data);
return;
}
More information about the Scummvm-git-logs
mailing list