Fix MainWindow height calculation, now launches in Steam Deck's Gaming Mode

This commit is contained in:
KeatonTheBot
2026-01-09 22:03:39 -06:00
parent 2aecce018c
commit 0d29b77a14
@@ -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;