1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-25 17:59:24 +01:00

fixed UiSystem AutoScaleReferenceSize default value

This commit is contained in:
Ell 2022-06-24 15:21:08 +02:00
parent 9c370f75e8
commit 42a87471fc

View file

@ -242,7 +242,7 @@ namespace MLEM.Ui {
if (automaticViewport) {
this.Viewport = new Rectangle(0, 0, game.Window.ClientBounds.Width, game.Window.ClientBounds.Height);
this.AutoScaleReferenceSize = new Point(this.Viewport.X, this.Viewport.Y);
this.AutoScaleReferenceSize = new Point(this.Viewport.Width, this.Viewport.Height);
game.Window.ClientSizeChanged += (sender, args) => {
this.Viewport = new Rectangle(0, 0, game.Window.ClientBounds.Width, game.Window.ClientBounds.Height);
};