From b351cd28e95cb01eaea70b4fdcd26804be428010 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 17 Apr 2016 13:24:34 +0200 Subject: WAGE: Improved accuracy of think line drawing. Still not perfect, it looks like our Bresenham is a bit different from the one used by QuickDraw, or (most likely) the polygon drawing is different. --- engines/wage/design.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp index 185c051eb6..e84cf2e89e 100644 --- a/engines/wage/design.cpp +++ b/engines/wage/design.cpp @@ -208,9 +208,9 @@ void drawPixel(int x, int y, int color, void *data) { if (p->thickness == 1) { p->design->adjustBounds(x, y); } else { - int x1 = x - p->thickness / 2; + int x1 = x; int x2 = x1 + p->thickness; - int y1 = y - p->thickness / 2; + int y1 = y; int y2 = y1 + p->thickness; for (y = y1; y < y2; y++) @@ -233,9 +233,9 @@ void drawPixel(int x, int y, int color, void *data) { color : kColorWhite; } } else { - int x1 = x - p->thickness / 2; + int x1 = x; int x2 = x1 + p->thickness; - int y1 = y - p->thickness / 2; + int y1 = y; int y2 = y1 + p->thickness; for (y = y1; y < y2; y++) -- cgit v1.2.3