WAGE: Fixes to think round rectangle drawing

This commit is contained in:
Eugene Sandulenko 2016-01-04 19:52:40 +01:00
parent 2db59e9c45
commit 79dfc2bda5

View File

@ -270,20 +270,19 @@ void Design::drawRoundRect(Graphics::Surface *surface, Common::ReadStream &in, b
Common::Rect outer(x1, y1, x2, y2); Common::Rect outer(x1, y1, x2, y2);
plotData pd(surface, &patterns, borderFillType, 1); plotData pd(surface, &patterns, fillType, 1);
if (mask) { if (mask) {
drawRoundRect(outer, arc, kColorBlack, true, drawPixelPlain, &pd); drawRoundRect(outer, arc, kColorBlack, true, drawPixelPlain, &pd);
return; return;
} }
Common::Rect inner(x1 + borderThickness, y1 + borderThickness, x2 - borderThickness, y2 - borderThickness);
drawRoundRect(outer, arc/2, kColorBlack, true, drawPixel, &pd); drawRoundRect(outer, arc/2, kColorBlack, true, drawPixel, &pd);
pd.fillType = fillType; pd.fillType = borderFillType;
pd.thickness = borderThickness; 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, void Design::drawPolygon(Graphics::Surface *surface, Common::ReadStream &in, bool mask,