diff options
author | Eugene Sandulenko | 2016-01-04 19:52:40 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-04 19:52:40 +0100 |
commit | 79dfc2bda545be7f6275b9525ddf9df10b5b68f5 (patch) | |
tree | d6ab383fb291f12c06963b3a03a89b6d5d2221da | |
parent | 2db59e9c45d19d4c012a43d200d9ba4ec32b83a8 (diff) | |
download | scummvm-rg350-79dfc2bda545be7f6275b9525ddf9df10b5b68f5.tar.gz scummvm-rg350-79dfc2bda545be7f6275b9525ddf9df10b5b68f5.tar.bz2 scummvm-rg350-79dfc2bda545be7f6275b9525ddf9df10b5b68f5.zip |
WAGE: Fixes to think round rectangle drawing
-rw-r--r-- | engines/wage/design.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp index 9f7856084d..7b7365be9f 100644 --- a/engines/wage/design.cpp +++ b/engines/wage/design.cpp @@ -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, |