REVIEWED: GetPixelColor() const

This commit is contained in:
Ray
2026-06-03 21:00:34 +02:00
parent e8650c1b8e
commit ee71f0f870
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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 };