Fix multicolor flood fill if target color is back color
This commit is contained in:
parent
ed37f360eb
commit
180e2598b8
|
@ -701,6 +701,9 @@ void bmmc_flood_fill(Bitmap * bm, ClipRect * clip, int x, int y, char color)
|
||||||
|
|
||||||
color = cbytes[color];
|
color = cbytes[color];
|
||||||
|
|
||||||
|
if (back == color)
|
||||||
|
return;
|
||||||
|
|
||||||
BLIT_CODE[sp++] = bx;
|
BLIT_CODE[sp++] = bx;
|
||||||
BLIT_CODE[sp++] = by;
|
BLIT_CODE[sp++] = by;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue