Change Color.ToAhsv to tuple syntax.

This commit is contained in:
Paul Chote
2021-04-12 18:34:33 +01:00
committed by teinarss
parent 96e333a30e
commit 57d955ec72
5 changed files with 9 additions and 13 deletions

View File

@@ -149,7 +149,7 @@ namespace OpenRA.Mods.Common.Widgets
/// </summary>
public void Set(Color color)
{
color.ToAhsv(out _, out var h, out var s, out _);
var (_, h, s, _) = color.ToAhsv();
if (H != h || S != s)
{