diff --git a/src/raylib.h b/src/raylib.h index 866f2473f..8e4d830c8 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1481,7 +1481,7 @@ RLAPI Color ColorAlpha(Color color, float alpha); // G RLAPI Color ColorAlphaBlend(Color dst, Color src, Color tint); // Get src alpha-blended into dst color with tint RLAPI Color ColorLerp(Color color1, Color color2, float factor); // Get color lerp interpolation between two colors, factor [0.0f..1.0f] RLAPI Color GetColor(unsigned int hexValue); // Get Color structure from hexadecimal value -RLAPI Color GetPixelColor(void *srcPtr, int format); // Get Color from a source pixel pointer of certain format +RLAPI Color GetPixelColor(const void *srcPtr, int format); // Get Color from a source pixel pointer of certain format RLAPI void SetPixelColor(void *dstPtr, Color color, int format); // Set color formatted into destination pixel pointer RLAPI int GetPixelDataSize(int width, int height, int format); // Get pixel data size in bytes for certain format diff --git a/src/rtextures.c b/src/rtextures.c index d2cfb9f78..1ab5cb3d9 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -5180,7 +5180,7 @@ Color GetColor(unsigned int hexValue) } // Get color from a pixel from certain format -Color GetPixelColor(void *srcPtr, int format) +Color GetPixelColor(const void *srcPtr, int format) { Color color = { 0 };