UI: Change order of VSync mode changing

VSync -> VSync Off -> Custom
is now
VSync -> Custom -> VSync Off

Note that Custom only appears if it's enabled in settings. This has no change if you aren't using custom VSync.
This commit is contained in:
Evan Husted 2025-01-30 16:47:40 -06:00
parent 796674d9cf
commit 359852b5c0
2 changed files with 4 additions and 12 deletions

View File

@ -325,21 +325,15 @@ namespace Ryujinx.Ava
switch (oldVSyncMode) switch (oldVSyncMode)
{ {
case VSyncMode.Switch: case VSyncMode.Switch:
newVSyncMode = VSyncMode.Unbounded; newVSyncMode = customVSyncIntervalEnabled
? VSyncMode.Custom
: VSyncMode.Unbounded;
break; break;
case VSyncMode.Unbounded: case VSyncMode.Unbounded:
if (customVSyncIntervalEnabled)
{
newVSyncMode = VSyncMode.Custom;
}
else
{
newVSyncMode = VSyncMode.Switch; newVSyncMode = VSyncMode.Switch;
}
break; break;
case VSyncMode.Custom: case VSyncMode.Custom:
newVSyncMode = VSyncMode.Switch; newVSyncMode = VSyncMode.Unbounded;
break; break;
} }

View File

@ -1,11 +1,9 @@
using Avalonia; using Avalonia;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using FluentAvalonia.UI.Controls; using FluentAvalonia.UI.Controls;
using Ryujinx.Ava.Common.Locale; using Ryujinx.Ava.Common.Locale;
using Ryujinx.Ava.UI.Models.Input; using Ryujinx.Ava.UI.Models.Input;
using Ryujinx.Ava.UI.ViewModels.Input; using Ryujinx.Ava.UI.ViewModels.Input;
using Ryujinx.Ava.UI.Views.Input;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Ryujinx.UI.Views.Input namespace Ryujinx.UI.Views.Input