Skip to content

Commit

Permalink
Fixed text rendering issue (corresponds to ImGuiNET/ImGui.NET#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastLe9enD committed Jul 16, 2022
1 parent f2f2b98 commit 7f4de73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MonoGame.ImGui/ImGUIRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected virtual Effect UpdateEffect(Texture2D texture) {
var io = ImGuiNET.ImGui.GetIO();
var displaySize = io.DisplaySize;

const float offset = 0.5f;
const float offset = 0.0f;
_effect.World = Matrix.Identity;
_effect.View = Matrix.Identity;
_effect.Projection = Matrix.CreateOrthographicOffCenter(offset, displaySize.X + offset, displaySize.Y + offset, offset, -1.0f, 1.0f);
Expand Down

0 comments on commit 7f4de73

Please sign in to comment.