Pārlūkot izejas kodu

Corrected bug on GetHexValue() function

pull/24/head
raysan5 pirms 9 gadiem
vecāks
revīzija
84befaea24
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c Parādīt failu

@ -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 ((p">(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)

Notiek ielāde…
Atcelt
Saglabāt