From c56b19b6ae722aafa94fa9e0b7beb8b465d98190 Mon Sep 17 00:00:00 2001 From: Zaafar Date: Tue, 15 Sep 2020 21:28:42 -0400 Subject: [PATCH] Updating MonoGame-specific offset as it's not required anymore. --- src/ImGui.NET.SampleProgram.XNA/ImGuiRenderer.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/ImGui.NET.SampleProgram.XNA/ImGuiRenderer.cs b/src/ImGui.NET.SampleProgram.XNA/ImGuiRenderer.cs index 5d745c2..04c121e 100644 --- a/src/ImGui.NET.SampleProgram.XNA/ImGuiRenderer.cs +++ b/src/ImGui.NET.SampleProgram.XNA/ImGuiRenderer.cs @@ -195,17 +195,9 @@ namespace ImGuiNET.SampleProgram.XNA var io = ImGui.GetIO(); - // MonoGame-specific ////////////////////// - var offset = .5f; - /////////////////////////////////////////// - - // FNA-specific /////////////////////////// - //var offset = 0f; - /////////////////////////////////////////// - _effect.World = Matrix.Identity; _effect.View = Matrix.Identity; - _effect.Projection = Matrix.CreateOrthographicOffCenter(offset, io.DisplaySize.X + offset, io.DisplaySize.Y + offset, offset, -1f, 1f); + _effect.Projection = Matrix.CreateOrthographicOffCenter(0f, io.DisplaySize.X, io.DisplaySize.Y, 0f, -1f, 1f); _effect.TextureEnabled = true; _effect.Texture = texture; _effect.VertexColorEnabled = true;