From 0d29b77a14a774b627cbd9736f0f235c4da3a436 Mon Sep 17 00:00:00 2001 From: KeatonTheBot Date: Fri, 9 Jan 2026 22:03:39 -0600 Subject: [PATCH] Fix MainWindow height calculation, now launches in Steam Deck's Gaming Mode --- src/Ryujinx/UI/Windows/MainWindow.axaml.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs index 5f358c5c1..508614a80 100644 --- a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs +++ b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs @@ -97,9 +97,6 @@ namespace Ryujinx.Ava.UI.Windows // NOTE: Height of MenuBar and StatusBar is not usable here, since it would still be 0 at this point. StatusBarHeight = StatusBarView.StatusBar.MinHeight; MenuBarHeight = MenuBar.MinHeight; - double barHeight = MenuBarHeight + StatusBarHeight; - Height = ((Height - barHeight) / Program.WindowScaleFactor) + barHeight; - Width /= Program.WindowScaleFactor; ApplicationList.DataContext = DataContext; ApplicationGrid.DataContext = DataContext;