Skip to content

Commit 93ec6fa

Browse files
committed
HDR Color Control support tweaks #4615
1 parent 4763489 commit 93ec6fa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/Display/ScreenControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static void ToogleHDRControl()
126126
{
127127
int hdrControl = Program.acpi.DeviceGet(AsusACPI.ScreenHDRControl);
128128
Logger.WriteLine($"HDR Control Toggle: {hdrControl}");
129-
Program.acpi.DeviceSet(AsusACPI.ScreenHDRControl, (hdrControl == 1) ? 0 : 1, "HDR Control");
129+
Program.acpi.DeviceSet(AsusACPI.ScreenHDRControl, (hdrControl == 1) ? 1 : 0, "HDR Control");
130130
Thread.Sleep(200);
131131
InitScreen();
132132
}

app/Settings.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,13 +1334,17 @@ public void VisualiseScreen(bool screenEnabled, bool screenAuto, int frequency,
13341334
buttonFHD.Text = fhd > 0 ? "FHD" : "UHD";
13351335
}
13361336

1337+
bool hdrControlVisible = (hdr && hdrControl >= 0);
1338+
13371339
if (miniled1 >= 0)
13381340
{
1341+
buttonMiniled.Visible = !hdrControlVisible;
13391342
buttonMiniled.Enabled = !hdr;
13401343
buttonMiniled.Activated = miniled1 == 1 || hdr;
13411344
}
13421345
else if (miniled2 >= 0)
13431346
{
1347+
buttonMiniled.Visible = !hdrControlVisible;
13441348
buttonMiniled.Enabled = !hdr;
13451349
if (hdr) miniled2 = 1; // Show HDR as Multizone Strong
13461350

@@ -1371,9 +1375,8 @@ public void VisualiseScreen(bool screenEnabled, bool screenAuto, int frequency,
13711375
buttonMiniled.Visible = false;
13721376
}
13731377

1374-
if (hdr && hdrControl >= 0)
1378+
if (hdrControlVisible)
13751379
{
1376-
buttonMiniled.Visible = false;
13771380
buttonHDRControl.Visible = true;
13781381
buttonHDRControl.Activated = hdrControl > 0;
13791382
buttonHDRControl.BorderColor = colorTurbo;

0 commit comments

Comments
 (0)