Fix ToAhsv using the wrong type for alpha

This commit is contained in:
abcdefg30
2022-01-12 14:49:17 +01:00
committed by Matthias Mailänder
parent 7a93b9ea8c
commit a9cd2d41c7

View File

@@ -49,7 +49,7 @@ namespace OpenRA.Primitives
return FromAhsv(255, h, s, v); return FromAhsv(255, h, s, v);
} }
public (float A, float H, float S, float V) ToAhsv() public (int A, float H, float S, float V) ToAhsv()
{ {
var (h, s, v) = RgbToHsv(R, G, B); var (h, s, v) = RgbToHsv(R, G, B);
return (A, h, s, v); return (A, h, s, v);