mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-08-31 13:16:28 -05:00
Set default width and height based on monitor resolution (#1046)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user