mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
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
This commit is contained in:
parent
7826674ec4
commit
a23fab7d9f
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user