Skip to content

Commit

Permalink
font rounding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saint11 committed Jul 19, 2023
1 parent 3103953 commit fc0bfb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Murder/Core/Graphics/PixelFont.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private Point DrawImpl(string text, Batch2D spriteBatch, Vector2 position, Vecto
return Point.Zero;
}

position = position.Round();
position = position.Floor();

Vector2 offset = Vector2.Zero;
Vector2 justified = new Vector2(WidthToNextLine(text, 0) * justify.X, HeightOf(text) * justify.Y);
Expand Down

0 comments on commit fc0bfb1

Please sign in to comment.