Skip to content

Commit

Permalink
WAGE: Fixes to think round rectangle drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 4, 2016
1 parent 2db59e9 commit 79dfc2b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions engines/wage/design.cpp
Expand Up @@ -270,20 +270,19 @@ void Design::drawRoundRect(Graphics::Surface *surface, Common::ReadStream &in, b

Common::Rect outer(x1, y1, x2, y2);

plotData pd(surface, &patterns, borderFillType, 1);
plotData pd(surface, &patterns, fillType, 1);

if (mask) {
drawRoundRect(outer, arc, kColorBlack, true, drawPixelPlain, &pd);
return;
}
Common::Rect inner(x1 + borderThickness, y1 + borderThickness, x2 - borderThickness, y2 - borderThickness);

drawRoundRect(outer, arc/2, kColorBlack, true, drawPixel, &pd);

pd.fillType = fillType;
pd.fillType = borderFillType;
pd.thickness = borderThickness;

drawRoundRect(inner, arc/2, kColorBlack, false, drawPixel, &pd);
drawRoundRect(outer, arc/2, kColorBlack, false, drawPixel, &pd);
}

void Design::drawPolygon(Graphics::Surface *surface, Common::ReadStream &in, bool mask,
Expand Down

0 comments on commit 79dfc2b

Please sign in to comment.