Avalonia: Show aspect ratio popup options in status bar (#5780)
* Show aspect ratio selection popup in status bar * Add aspect ratio tooltip * Fix typo
This commit is contained in:
parent
e40470bbe1
commit
ac4f2c1e70
3 changed files with 49 additions and 7 deletions
|
@ -43,10 +43,9 @@ namespace Ryujinx.Ava.UI.Views.Main
|
|||
ConfigurationState.Instance.System.EnableDockedMode.Value = !ConfigurationState.Instance.System.EnableDockedMode.Value;
|
||||
}
|
||||
|
||||
private void AspectRatioStatus_PointerReleased(object sender, PointerReleasedEventArgs e)
|
||||
private void AspectRatioStatus_OnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AspectRatio aspectRatio = ConfigurationState.Instance.Graphics.AspectRatio.Value;
|
||||
|
||||
ConfigurationState.Instance.Graphics.AspectRatio.Value = (int)aspectRatio + 1 > Enum.GetNames(typeof(AspectRatio)).Length - 1 ? AspectRatio.Fixed4x3 : aspectRatio + 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue