From 771204a182d29f4d6709087ccb95c5574bb987e8 Mon Sep 17 00:00:00 2001 From: Xander Frangos <33106561+xanderfrangos@users.noreply.github.com> Date: Mon, 21 Oct 2024 20:30:52 -0400 Subject: [PATCH] Fix brightness being set without normalization Whoops --- src/electron.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/electron.js b/src/electron.js index c218814f..d5099d2e 100644 --- a/src/electron.js +++ b/src/electron.js @@ -1912,12 +1912,12 @@ function updateBrightness(index, newLevel, useCap = true, vcpValue = "brightness return false } - const normalized = normalizeBrightness(level, false, 0, 100) + const normalized = normalizeBrightness(level, false, monitor.min, monitor.max) if (vcp === "sdr") { monitorsThread.send({ type: "sdr", - brightness: normalized, + brightness: level, id: monitor.id }) } else if (monitor.type == "ddcci") {