diff options
| author | Richard Smith <[email protected]> | 2021-08-26 16:31:01 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-26 17:31:01 +0200 |
| commit | cac856119c23898579fc237703a8ff3bda207dc6 (patch) | |
| tree | 4173a3e9162d6e4bddbfe59b6aed7bea117eaff8 /src/extras | |
| parent | 1286bc076f2f121b5375554c2ff26d2c1c72e0eb (diff) | |
| download | raylib-cac856119c23898579fc237703a8ff3bda207dc6.tar.gz raylib-cac856119c23898579fc237703a8ff3bda207dc6.zip | |
Change GetColor to take unsigned int (#1954)
Diffstat (limited to 'src/extras')
| -rw-r--r-- | src/extras/raygui.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extras/raygui.h b/src/extras/raygui.h index bb191900..31b7ca77 100644 --- a/src/extras/raygui.h +++ b/src/extras/raygui.h @@ -1154,7 +1154,7 @@ static const char *GetDirectoryPath(const char *filePath); // -- GuiLoadStyle() // raylib functions already implemented in raygui //------------------------------------------------------------------------------- -static Color GetColor(int hexValue); // Returns a Color struct from hexadecimal value +static Color GetColor(unsigned int hexValue); // Returns a Color struct from hexadecimal value static int ColorToInt(Color color); // Returns hexadecimal value for a Color static Color Fade(Color color, float alpha); // Color fade-in or fade-out, alpha goes from 0.0f to 1.0f static bool CheckCollisionPointRec(Vector2 point, Rectangle rec); // Check if point is inside rectangle @@ -4061,7 +4061,7 @@ static Vector3 ConvertHSVtoRGB(Vector3 hsv) #if defined(RAYGUI_STANDALONE) // Returns a Color struct from hexadecimal value -static Color GetColor(int hexValue) +static Color GetColor(unsigned int hexValue) { Color color; |
