Skip to content

Commit

Permalink
Merge pull request #236 from Jaykul/feature/schemeslist
Browse files Browse the repository at this point in the history
Fix UIntTocolor
  • Loading branch information
miniksa authored Oct 2, 2018
2 parents d8ab20d + 8dacee6 commit 2c33edc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/ColorTool/ColorTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,10 @@ static void PrintSchemes()

private static Color UIntToColor(uint color)
{
byte a = (byte)(color >> 24);
byte r = (byte)(color >> 16);
byte r = (byte)(color >> 0);
byte g = (byte)(color >> 8);
byte b = (byte)(color >> 0);
return Color.FromArgb(a, r, g, b);
byte b = (byte)(color >> 16);
return Color.FromArgb(r, g, b);
}

static bool SetProperties(ColorScheme colorScheme)
Expand Down

0 comments on commit 2c33edc

Please sign in to comment.