mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-02 21:36:25 +02:00
Avalonia: Clean up leftover RenderTimer & Fix minimum and initial window size (#3935)
* ava: Cleanup RenderTimer * ava: Remove ContentControl from RendererHost * ava: Remove unused actual scale factor * ava: Enable UseGpu for Linux * ava: Set better initial size & Scale the window properly * ava: Realign properties * ava: Use explicit type & specify where the note applies
This commit is contained in:
parent
d2686e0a5b
commit
3fb583c98c
6 changed files with 13 additions and 132 deletions
|
@ -90,7 +90,9 @@ namespace Ryujinx.Ava.Ui.Windows
|
|||
|
||||
Title = $"Ryujinx {Program.Version}";
|
||||
|
||||
Height /= Program.WindowScaleFactor;
|
||||
// NOTE: Height of MenuBar and StatusBar is not usable here, since it would still be 0 at this point.
|
||||
double barHeight = MenuBar.MinHeight + StatusBar.MinHeight;
|
||||
Height = ((Height - barHeight) / Program.WindowScaleFactor) + barHeight;
|
||||
Width /= Program.WindowScaleFactor;
|
||||
|
||||
if (Program.PreviewerDetached)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue