Corrected bug on GetHexValue() function
This commit is contained in:
parent
2be8753788
commit
84befaea24
1 changed files with 1 additions and 1 deletions
|
@ -606,7 +606,7 @@ Color GetColor(int hexValue)
|
|||
// Returns hexadecimal value for a Color
|
||||
int GetHexValue(Color color)
|
||||
{
|
||||
return ((color.a << 24) + (color.r << 16) + (color.g << 8) + color.b);
|
||||
return (((int)color.r << 24) | ((int)color.g << 16) | ((int)color.b << 8) | (int)color.a);
|
||||
}
|
||||
|
||||
// Returns a random value between min and max (both included)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue