diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index 094f6ff5..2415280b 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -91,6 +91,12 @@ namespace Ryujinx.Ui { builder.Autoconnect(this); + int monitorWidth = Display.PrimaryMonitor.Geometry.Width * Display.PrimaryMonitor.ScaleFactor; + int monitorHeight = Display.PrimaryMonitor.Geometry.Height * Display.PrimaryMonitor.ScaleFactor; + + this.DefaultWidth = monitorWidth < 1280 ? monitorWidth : 1280; + this.DefaultHeight = monitorHeight < 760 ? monitorHeight : 760; + this.DeleteEvent += Window_Close; _fullScreen.Activated += FullScreen_Toggled; diff --git a/Ryujinx/Ui/MainWindow.glade b/Ryujinx/Ui/MainWindow.glade index 931cd2a5..95beefb2 100644 --- a/Ryujinx/Ui/MainWindow.glade +++ b/Ryujinx/Ui/MainWindow.glade @@ -6,8 +6,6 @@ False Ryujinx center - 1280 - 760 @@ -399,7 +397,6 @@ - 1280 19 True False