diff options
author | Eugene Sandulenko | 2016-04-17 13:24:34 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-04-17 13:25:41 +0200 |
commit | b351cd28e95cb01eaea70b4fdcd26804be428010 (patch) | |
tree | 5b3258727514251111e3098191332598f167acb8 /engines/wage | |
parent | 44a49dbec5d7a472edcd662b77c041baa22872a0 (diff) | |
download | scummvm-rg350-b351cd28e95cb01eaea70b4fdcd26804be428010.tar.gz scummvm-rg350-b351cd28e95cb01eaea70b4fdcd26804be428010.tar.bz2 scummvm-rg350-b351cd28e95cb01eaea70b4fdcd26804be428010.zip |
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.
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/design.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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++) |