From 84befaea2467879e9fd01b0728e328f7d2497405 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 5 Jul 2015 18:19:49 +0200 Subject: [PATCH] Corrected bug on GetHexValue() function --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)