Skip to content

Commit

Permalink
WAGE: Fix to roundrect rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 27, 2015
1 parent 08ffaf8 commit 3adda82
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions engines/wage/design.cpp
Expand Up @@ -180,19 +180,11 @@ void Design::drawRoundRect(Graphics::Surface *surface, Common::ReadStream &in, b
}
Common::Rect inner(x1 + borderThickness, y1 + borderThickness, x2 - borderThickness, y2 - borderThickness);

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

pd.fillType = fillType;

drawFilledRoundRect(inner, arc, kColorBlack, drawPixel, &pd);
/*
Common::Rect inn(50, 50, 400, 400);
pd.fillType = 8;
pd.x0 = 50;
pd.y0 = 50;
drawFilledRect(inn, kColorBlack, drawPixel, &pd);
drawFilledRoundRect(inn, arc, kColorGray, drawPixel, &pd);
*/
drawFilledRoundRect(inner, arc/2, kColorBlack, drawPixel, &pd);
}

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

0 comments on commit 3adda82

Please sign in to comment.