aboutsummaryrefslogtreecommitdiff
path: root/graphics/primitives.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-25 12:25:58 +0200
committerEugene Sandulenko2016-08-25 12:25:58 +0200
commit8605b6da8524f22b79188d75821a258157881ad7 (patch)
tree580296897905e311d099da409fbfdaa8c814c55a /graphics/primitives.cpp
parent2b3af190db0076576c310b96cf52d7952034aca3 (diff)
downloadscummvm-rg350-8605b6da8524f22b79188d75821a258157881ad7.tar.gz
scummvm-rg350-8605b6da8524f22b79188d75821a258157881ad7.tar.bz2
scummvm-rg350-8605b6da8524f22b79188d75821a258157881ad7.zip
GRAPHICS: Correcting think line thickness
Diffstat (limited to 'graphics/primitives.cpp')
-rw-r--r--graphics/primitives.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp
index ee240208ac..8663a61606 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;
}