Bugfix for ImageFloodFill
Wasn't fully format agnostic, now it is.
This commit is contained in:
parent
b3e2f5cd40
commit
b741e7be33
|
|
@ -2108,7 +2108,7 @@ void ImageFloodFill(Image *dst, int startPosX, int startPosY, Color color){
|
||||||
{x - 1, y},
|
{x - 1, y},
|
||||||
};
|
};
|
||||||
|
|
||||||
Color sc = *((Color *)start_pixel_address);
|
Color sc = GetPixelColor(start_pixel_address, dst->format);
|
||||||
|
|
||||||
for(int n = 0; n < 4; n++)
|
for(int n = 0; n < 4; n++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user