From ea1633c322107fd981d0ae9a24915693eee34b48 Mon Sep 17 00:00:00 2001 From: Diogo Trindade Date: Mon, 8 Mar 2021 23:08:58 +0000 Subject: [PATCH] Fixed compile-time error with newer Visual Studio for some reason this breaks on newer vs / dotnet versions --- src/Artemis.UI.Shared/Controls/DeviceVisualizerLed.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Artemis.UI.Shared/Controls/DeviceVisualizerLed.cs b/src/Artemis.UI.Shared/Controls/DeviceVisualizerLed.cs index 1e96549a9..28fde6cca 100644 --- a/src/Artemis.UI.Shared/Controls/DeviceVisualizerLed.cs +++ b/src/Artemis.UI.Shared/Controls/DeviceVisualizerLed.cs @@ -48,7 +48,7 @@ namespace Artemis.UI.Shared byte g = Led.RgbLed.Color.GetG(); byte b = Led.RgbLed.Color.GetB(); - _renderColor.A = isDimmed ? 100 : 255; + _renderColor.A = (byte)(isDimmed ? 100 : 255); _renderColor.R = r; _renderColor.G = g; _renderColor.B = b;