Skip to content

Commit 4763489

Browse files
committed
HDR Color Control support tweaks #4615
1 parent 35949e5 commit 4763489

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/Display/ScreenControl.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ public static void ToogleHDRControl()
127127
int hdrControl = Program.acpi.DeviceGet(AsusACPI.ScreenHDRControl);
128128
Logger.WriteLine($"HDR Control Toggle: {hdrControl}");
129129
Program.acpi.DeviceSet(AsusACPI.ScreenHDRControl, (hdrControl == 1) ? 0 : 1, "HDR Control");
130+
Thread.Sleep(200);
130131
InitScreen();
131132
}
132133

@@ -222,7 +223,7 @@ public static void InitScreen()
222223
}
223224

224225
int hdrControl = Program.acpi.DeviceGet(AsusACPI.ScreenHDRControl);
225-
if (hdrControl >= 0) Logger.WriteLine($"HDR Color Control: {hdrControl}");
226+
if (hdrControl >= 0) Logger.WriteLine($"HDR Control Status: {hdrControl}");
226227

227228
AppConfig.Set("frequency", frequency);
228229
AppConfig.Set("overdrive", overdrive);

app/Settings.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,9 @@ public void VisualiseScreen(bool screenEnabled, bool screenAuto, int frequency,
13771377
buttonHDRControl.Visible = true;
13781378
buttonHDRControl.Activated = hdrControl > 0;
13791379
buttonHDRControl.BorderColor = colorTurbo;
1380+
} else
1381+
{
1382+
buttonHDRControl.Visible = false;
13801383
}
13811384

13821385
if (hdr) labelVisual.Text = Properties.Strings.VisualModesHDR;

0 commit comments

Comments
 (0)