mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-02-23 21:54:37 +01:00
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:
parent
796674d9cf
commit
359852b5c0
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user