Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

Commit

Permalink
Fix 2D outline rectangle rendering (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
hach-que committed May 26, 2017
1 parent 4a88a18 commit 728fcea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Protogame/Core/Default2DRenderUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void RenderRectangle(IRenderContext context, Rectangle rectangle, Color c
RenderLine(
context,
new Vector2(rectangle.X, rectangle.Y),
new Vector2(rectangle.X, rectangle.Y + rectangle.Height),
new Vector2(rectangle.X, rectangle.Y + rectangle.Height + 1),
color);
RenderLine(
context,
Expand All @@ -99,7 +99,7 @@ public void RenderRectangle(IRenderContext context, Rectangle rectangle, Color c
color);
RenderLine(
context,
new Vector2(rectangle.X + rectangle.Width, rectangle.Y),
new Vector2(rectangle.X + rectangle.Width, rectangle.Y + 1),
new Vector2(rectangle.X + rectangle.Width, rectangle.Y + rectangle.Height),
color);
}
Expand Down

0 comments on commit 728fcea

Please sign in to comment.