1
0
mirror of synced 2024-11-23 23:21:06 +01:00

Fix game window violently resizing itself on Linux (#673)

* Fix game window violently resizing itself on Linux

* This isn't necessary either
This commit is contained in:
DragonRatTiger / リュウコ 2024-08-09 05:41:32 -05:00 committed by GitHub
parent 9ce9049131
commit d7d7664497
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -417,15 +417,11 @@ namespace SampleFramework {
ViewPortOffset.X = (size.X - ViewPortSize.X) / 2; ViewPortOffset.X = (size.X - ViewPortSize.X) / 2;
ViewPortOffset.Y = (size.Y - ViewPortSize.Y) / 2; ViewPortOffset.Y = (size.Y - ViewPortSize.Y) / 2;
WindowSize = size;
Gl.Viewport(ViewPortOffset.X, ViewPortOffset.Y, (uint)ViewPortSize.X, (uint)ViewPortSize.Y); Gl.Viewport(ViewPortOffset.X, ViewPortOffset.Y, (uint)ViewPortSize.X, (uint)ViewPortSize.Y);
} }
public void Window_Move(Vector2D<int> size) { public void Window_Move(Vector2D<int> size) { }
WindowPosition = size;
}
public void Window_FramebufferResize(Vector2D<int> size) { public void Window_FramebufferResize(Vector2D<int> size) { }
}
} }
} }