Bugfix for ImageFloodFill

Wasn't fully format agnostic, now it is.
This commit is contained in:
Alexander Buhl 2021-12-18 22:58:03 +01:00 committed by GitHub
parent b3e2f5cd40
commit b741e7be33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2108,7 +2108,7 @@ void ImageFloodFill(Image *dst, int startPosX, int startPosY, Color color){
{x - 1, y},
};
Color sc = *((Color *)start_pixel_address);
Color sc = GetPixelColor(start_pixel_address, dst->format);
for(int n = 0; n < 4; n++)
{