We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b94151 commit 41ff391Copy full SHA for 41ff391
src/graphx/graphx.asm
@@ -5418,8 +5418,11 @@ gfx_FloodFill:
5418
ld (.oldcolor0),a
5419
ld (.oldcolor1),a
5420
ld (.oldcolor2),a
5421
+ ld b,(ix+12)
5422
+ cp a,b ; return if same color
5423
+ jq z,.return
5424
- ld a,(ix+12)
5425
+ ld a,b
5426
ld (.newcolor0),a
5427
ld (.newcolor1),a
5428
@@ -5647,6 +5650,7 @@ smcByte _YSpan
5647
5650
sbc hl,de
5648
5651
jp c,.dowhileloop ; } while (sp>stack);
5649
5652
5653
+.return:
5654
ld sp,ix
5655
pop ix
5656
ret
0 commit comments