GRAPHICS: Draw thick lines with wider rectangles for the time being
This commit is contained in:
parent
d8a5a284e7
commit
57d91c8bdd
1 changed files with 2 additions and 2 deletions
|
@ -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 - 1, MAX(y1, y2));
|
||||
drawFilledRect(r, color, plotProc, data);
|
||||
drawFilledRect1(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 - 1);
|
||||
drawFilledRect(r, color, plotProc, data);
|
||||
drawFilledRect1(r, color, plotProc, data);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue