Skip to content

Commit c56b19b

Browse files
committed
Updating MonoGame-specific offset as it's not required anymore.
1 parent 49aa2d9 commit c56b19b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/ImGui.NET.SampleProgram.XNA/ImGuiRenderer.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,9 @@ protected virtual Effect UpdateEffect(Texture2D texture)
195195

196196
var io = ImGui.GetIO();
197197

198-
// MonoGame-specific //////////////////////
199-
var offset = .5f;
200-
///////////////////////////////////////////
201-
202-
// FNA-specific ///////////////////////////
203-
//var offset = 0f;
204-
///////////////////////////////////////////
205-
206198
_effect.World = Matrix.Identity;
207199
_effect.View = Matrix.Identity;
208-
_effect.Projection = Matrix.CreateOrthographicOffCenter(offset, io.DisplaySize.X + offset, io.DisplaySize.Y + offset, offset, -1f, 1f);
200+
_effect.Projection = Matrix.CreateOrthographicOffCenter(0f, io.DisplaySize.X, io.DisplaySize.Y, 0f, -1f, 1f);
209201
_effect.TextureEnabled = true;
210202
_effect.Texture = texture;
211203
_effect.VertexColorEnabled = true;

0 commit comments

Comments
 (0)