From 80026bfc2077bab2c6cc962e654218e5d389071c Mon Sep 17 00:00:00 2001 From: Xander Frangos <33106561+xanderfrangos@users.noreply.github.com> Date: Thu, 7 Jul 2022 23:38:45 -0400 Subject: [PATCH] Fix raw brightness being cached instead of normalized --- src/electron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/electron.js b/src/electron.js index 6cccce6f..579860f0 100644 --- a/src/electron.js +++ b/src/electron.js @@ -1345,7 +1345,7 @@ function updateBrightness(index, level, useCap = true, vcp = "brightness", clear const normalized = normalizeBrightness(level, false, (useCap ? monitor.min : 0), (useCap ? monitor.max : 100)) if (monitor.type == "ddcci" && vcp === "brightness") { - monitor.brightness = level + monitor.brightness = normalized monitorsThread.send({ type: "brightness", brightness: normalized * ((monitor.brightnessMax || 100) / 100),