1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Fixed compile-time error with newer Visual Studio

for some reason this breaks on newer vs / dotnet versions
This commit is contained in:
Diogo Trindade 2021-03-08 23:08:58 +00:00
parent ab0088ed10
commit ea1633c322

View File

@ -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;