Skip to content

Commit

Permalink
fixed drawRect with lines (see HeapsIO#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse authored and saem committed May 24, 2020
1 parent e62a2e7 commit 1c8ef6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/h2d/Graphics.hx
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,13 @@ class Graphics extends Drawable {
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
var e = 0.01; // see #776
tmpPoints[0].x += e;
tmpPoints[0].y += e;
tmpPoints[1].y += e;
tmpPoints[3].x += e;
tmpPoints[4].x += e;
tmpPoints[4].y += e;
flush();
}

Expand Down

0 comments on commit 1c8ef6f

Please sign in to comment.