Skip to content

Commit

Permalink
Apply shape scaling fix from Lekeno
Browse files Browse the repository at this point in the history
  • Loading branch information
inorton committed Mar 17, 2018
1 parent 0d6d010 commit 752a01d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EDMCOverlay/EDMCOverlay/OverlayRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,21 +388,21 @@ private void DrawVector(Graphics draw, Graphic start)

private void DrawShape(Graphics draw, Graphic g)
{
Point position = Scale(g.X, g.Y);
Rectangle shapeRect = new Rectangle(Scale(g.X, g.Y), new Size(Scale(g.W, g.H)));

if (g.Shape.Equals(GraphicType.SHAPE_RECT))
{
Brush fill = GetBrush(g.Fill);
if (fill != null)
{
draw.FillRectangle(fill, g.X, g.Y, g.W, g.H);
draw.FillRectangle(fill, shapeRect);
}

Brush paint = GetBrush(g.Color);
if (paint != null) {
Pen p = new Pen(paint);
Point size = Scale(g.W, g.H);
draw.DrawRectangle(p, g.X, g.Y, g.W, g.H);
draw.DrawRectangle(p, shapeRect);
}
} else
{
Expand Down

0 comments on commit 752a01d

Please sign in to comment.