mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 21:03:31 +00:00
WAGE: Fixes to think round rectangle drawing
This commit is contained in:
parent
2db59e9c45
commit
79dfc2bda5
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user