diff options
author | jcm <john.moody@coloradocollege.edu> | 2023-10-04 12:15:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 19:15:37 +0200 |
commit | f61b7818c3330fa0cda3fcde5b1de51b1477bfa0 (patch) | |
tree | 561f94aa0c1beac0b92bdef9ce394780e2c09233 | |
parent | a2a97e1b11d38b51231e05a1da5202481cdf4df8 (diff) |
Avalonia: Add macOS check for Color Space Passthrough (#5754)1.1.1040
* add macOS check for color passthrough
* use existing IsMacOS property
---------
Co-authored-by: jcm <butt@butts.com>
-rw-r--r-- | src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs | 1 | ||||
-rw-r--r-- | src/Ryujinx.Ava/UI/Views/Settings/SettingsGraphicsView.axaml | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs index 9c61becd..604e3406 100644 --- a/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs +++ b/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs @@ -147,6 +147,7 @@ namespace Ryujinx.Ava.UI.ViewModels public bool EnableTextureRecompression { get; set; } public bool EnableMacroHLE { get; set; } public bool EnableColorSpacePassthrough { get; set; } + public bool ColorSpacePassthroughAvailable => IsMacOS; public bool EnableFileLog { get; set; } public bool EnableStub { get; set; } public bool EnableInfo { get; set; } diff --git a/src/Ryujinx.Ava/UI/Views/Settings/SettingsGraphicsView.axaml b/src/Ryujinx.Ava/UI/Views/Settings/SettingsGraphicsView.axaml index 9dc67dad..f6ba0a4c 100644 --- a/src/Ryujinx.Ava/UI/Views/Settings/SettingsGraphicsView.axaml +++ b/src/Ryujinx.Ava/UI/Views/Settings/SettingsGraphicsView.axaml @@ -73,6 +73,7 @@ <TextBlock Text="{locale:Locale SettingsEnableMacroHLE}" /> </CheckBox> <CheckBox IsChecked="{Binding EnableColorSpacePassthrough}" + IsVisible="{Binding ColorSpacePassthroughAvailable}" ToolTip.Tip="{locale:Locale SettingsEnableColorSpacePassthroughTooltip}"> <TextBlock Text="{locale:Locale SettingsEnableColorSpacePassthrough}" /> </CheckBox> @@ -296,4 +297,4 @@ </StackPanel> </Border> </ScrollViewer> -</UserControl>
\ No newline at end of file +</UserControl> |