aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-07-05 18:19:49 +0200
committerraysan5 <raysan5@gmail.com>2015-07-05 18:19:49 +0200
commit84befaea2467879e9fd01b0728e328f7d2497405 (patch)
tree6839427b1148c203b6f675d5edc7112dea762a47 /src
parent2be8753788d99cc089f2f26e19d5dd3159ee431f (diff)
downloadraylib-84befaea2467879e9fd01b0728e328f7d2497405.tar.gz
raylib-84befaea2467879e9fd01b0728e328f7d2497405.zip
Corrected bug on GetHexValue() function
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 7bbe3892..301d9e6e 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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)