mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 22:35:38 +00:00
Check if AMD GPU scaling is enabled to allow changing resolution by default
This commit is contained in:
parent
85c8ee379f
commit
a7f16dbde6
7 changed files with 61 additions and 10 deletions
|
|
@ -56,7 +56,7 @@ namespace PowerControl
|
|||
Name = "Resolution",
|
||||
ApplyDelay = 1000,
|
||||
ResetValue = () => {
|
||||
if (!Settings.Default.EnableExperimentalFeatures)
|
||||
if (!AMD.IsGPUScalingEnabled() && !Settings.Default.EnableExperimentalFeatures)
|
||||
return null;
|
||||
return Helpers.PhysicalMonitorBrightnessController.GetAllResolutions().Last();
|
||||
},
|
||||
|
|
@ -69,7 +69,7 @@ namespace PowerControl
|
|||
},
|
||||
CurrentValue = delegate()
|
||||
{
|
||||
if (!Settings.Default.EnableExperimentalFeatures)
|
||||
if (!AMD.IsGPUScalingEnabled() && !Settings.Default.EnableExperimentalFeatures)
|
||||
return null;
|
||||
return Helpers.PhysicalMonitorBrightnessController.GetResolution();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue