aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs
diff options
context:
space:
mode:
authorAhmad Tantowi <ahmadtantowi@outlook.com>2023-10-08 16:04:41 +0700
committerGitHub <noreply@github.com>2023-10-08 11:04:41 +0200
commitac4f2c1e70b35ad4dada0ea1f9ae93cfc7851d4b (patch)
tree7983ba8f3a3c2848b7c5750ea3957d6d5b92efce /src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs
parente40470bbe1eeed7bdc15dcf51226e374453c1942 (diff)
Avalonia: Show aspect ratio popup options in status bar (#5780)1.1.1049
* Show aspect ratio selection popup in status bar * Add aspect ratio tooltip * Fix typo
Diffstat (limited to 'src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs')
-rw-r--r--src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs
index bd852710..7a9e4df1 100644
--- a/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs
+++ b/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs
@@ -1278,6 +1278,11 @@ namespace Ryujinx.Ava.UI.ViewModels
Glyph = Glyph.Grid;
}
+ public void SetAspectRatio(AspectRatio aspectRatio)
+ {
+ ConfigurationState.Instance.Graphics.AspectRatio.Value = aspectRatio;
+ }
+
public async Task InstallFirmwareFromFile()
{
var result = await StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions