Check if AMD GPU scaling is enabled to allow changing resolution by default

This commit is contained in:
Kamil Trzciński 2022-11-19 21:28:28 +01:00
parent 85c8ee379f
commit a7f16dbde6
7 changed files with 61 additions and 10 deletions

View file

@ -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();
},