From b741e7be3365c4c7b5f53c7a07fff7c85cc617b2 Mon Sep 17 00:00:00 2001 From: Alexander Buhl <63983202+Buhlean@users.noreply.github.com> Date: Sat, 18 Dec 2021 22:58:03 +0100 Subject: [PATCH] Bugfix for ImageFloodFill Wasn't fully format agnostic, now it is. --- src/rtextures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtextures.c b/src/rtextures.c index 309804984..273cb5cbf 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -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++) {