mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +01:00
fixed UiSystem AutoScaleReferenceSize default value
This commit is contained in:
parent
9c370f75e8
commit
42a87471fc
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ namespace MLEM.Ui {
|
||||||
|
|
||||||
if (automaticViewport) {
|
if (automaticViewport) {
|
||||||
this.Viewport = new Rectangle(0, 0, game.Window.ClientBounds.Width, game.Window.ClientBounds.Height);
|
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) => {
|
game.Window.ClientSizeChanged += (sender, args) => {
|
||||||
this.Viewport = new Rectangle(0, 0, game.Window.ClientBounds.Width, game.Window.ClientBounds.Height);
|
this.Viewport = new Rectangle(0, 0, game.Window.ClientBounds.Width, game.Window.ClientBounds.Height);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue