From a23fab7d9fe5d006adce5cff005e164d43e11319 Mon Sep 17 00:00:00 2001 From: Diogo Trindade Date: Sat, 12 Dec 2020 00:15:07 +0000 Subject: [PATCH] Surface Editor - reverted color correction in the editor the editor uses RGB.NET colors to display leds, so we need to use color correction data to restore it back to original --- src/Artemis.UI.Shared/Controls/DeviceVisualizerLed.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Artemis.UI.Shared/Controls/DeviceVisualizerLed.cs b/src/Artemis.UI.Shared/Controls/DeviceVisualizerLed.cs index 050ad68aa..62b3db0d5 100644 --- a/src/Artemis.UI.Shared/Controls/DeviceVisualizerLed.cs +++ b/src/Artemis.UI.Shared/Controls/DeviceVisualizerLed.cs @@ -38,9 +38,10 @@ namespace Artemis.UI.Shared if (DisplayGeometry == null) return; - byte r = Led.RgbLed.Color.GetR(); - byte g = Led.RgbLed.Color.GetG(); - byte b = Led.RgbLed.Color.GetB(); + RGB.NET.Core.Color originalColor = Led.RgbLed.Color.DivideRGB(Led.Device.RedScale, Led.Device.GreenScale, Led.Device.BlueScale); + byte r = originalColor.GetR(); + byte g = originalColor.GetG(); + byte b = originalColor.GetB(); drawingContext.DrawRectangle(isDimmed ? new SolidColorBrush(Color.FromArgb(100, r, g, b))