From 6e66e78918dabdb60eb93c75476a947c8d717edb Mon Sep 17 00:00:00 2001 From: Christopher Merrill <47538097+Revan20911@users.noreply.github.com> Date: Sat, 15 Apr 2023 11:36:45 -0500 Subject: [PATCH] Added resize function Resize function gets called if the value of the config resolution combo box is not null and not set to auto. --- Ryujinx/Ui/MainWindow.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index e0252016f..82be82070 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -1011,6 +1011,14 @@ namespace Ryujinx.Ui } } + public void UpdateWindowResolution(){ + + int width = ConfigurationState.Instance.Ui.WindowSizeWidth.Value; + int height = ConfigurationState.Instance.Ui.WindowSizeHeight.Value; + + Resize(width, height); + } + public void UpdateGraphicsConfig() { int resScale = ConfigurationState.Instance.Graphics.ResScale; @@ -1762,4 +1770,4 @@ namespace Ryujinx.Ui UpdateGameTable(); } } -} \ No newline at end of file +}