diff options
author | Eugene Sandulenko | 2015-12-18 20:21:06 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-27 15:40:54 +0100 |
commit | e4d9f885f15475e82ba4fecb35f6a5be7e2033d8 (patch) | |
tree | c2d1178b7f3d93b2cdff6d9521ad76dd9e4711a6 /engines | |
parent | b92e7f602f1fb0037047a56045b418597359db36 (diff) | |
download | scummvm-rg350-e4d9f885f15475e82ba4fecb35f6a5be7e2033d8.tar.gz scummvm-rg350-e4d9f885f15475e82ba4fecb35f6a5be7e2033d8.tar.bz2 scummvm-rg350-e4d9f885f15475e82ba4fecb35f6a5be7e2033d8.zip |
WAGE: Fixed h/v line
Diffstat (limited to 'engines')
-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 6b30954c58..1ba31bc99b 100644 --- a/engines/wage/design.cpp +++ b/engines/wage/design.cpp @@ -387,8 +387,8 @@ void Design::drawFilledEllipse(int x0, int y0, int x1, int y1, void (*plotProc)( a *= 8*a; b1 = 8*b*b; do { - drawHLine(x0, x1 + 1, y0, kColorBlack, plotProc, data); - drawHLine(x0, x1 + 1, y1, kColorBlack, plotProc, data); + drawHLine(x0, x1, y0, kColorBlack, plotProc, data); + drawHLine(x0, x1, y1, kColorBlack, plotProc, data); e2 = 2*err; if (e2 <= dy) { y0++; y1--; err += dy += a; } /* y step */ if (e2 >= dx || 2*err > dy) { x0++; x1--; err += dx += b1; } /* x step */ @@ -408,7 +408,7 @@ void Design::drawHLine(int x1, int x2, int y, int color, void (*plotProc)(int, i if (x1 > x2) SWAP(x1, x2); - for (int x = x1; x < x2; x++) + for (int x = x1; x <= x2; x++) (*plotProc)(x, y, color, data); } @@ -416,7 +416,7 @@ void Design::drawVLine(int x, int y1, int y2, int color, void (*plotProc)(int, i if (y1 > y2) SWAP(y1, y2); - for (int y = y1; y < y2; y++) + for (int y = y1; y <= y2; y++) (*plotProc)(x, y, color, data); } |