File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -5446,14 +5446,14 @@ gfx_FloodFill:
5446
5446
jr nc , .badpush0 ; check stack limit
5447
5447
ld a , (_YMin)
5448
5448
ld e , a
5449
- ld a , (ix - 4 )
5450
- neg
5451
- add a , (ix + 9 )
5449
+ ld a , (ix + 9 )
5450
+ sub a , (ix - 4 )
5452
5451
cp a , e
5453
5452
jr c , .badpush0
5454
5453
ld e , a
5455
5454
ld a , (_YMax)
5456
- cp a , e
5455
+ scf
5456
+ sbc a , e
5457
5457
jr c , .badpush0 ; compare y values
5458
5458
ld a , (ix + 9 )
5459
5459
ld (iy + 6 ) , a
@@ -5514,7 +5514,8 @@ gfx_FloodFill:
5514
5514
jr c , .badpush1
5515
5515
ld e , a
5516
5516
ld a , (_YMax)
5517
- cp a , e
5517
+ scf
5518
+ sbc a , e
5518
5519
jr c , .badpush1 ; compare y values
5519
5520
dec bc
5520
5521
ld (iy + 3 ) , bc
@@ -5539,14 +5540,14 @@ gfx_FloodFill:
5539
5540
jr nc , .badpush2
5540
5541
ld a , (_YMin)
5541
5542
ld e , a
5542
- ld a , (ix - 4 )
5543
- neg
5544
- add a , (ix + 9 )
5543
+ ld a , (ix + 9 )
5544
+ sub a , (ix - 4 )
5545
5545
cp a , e
5546
5546
jr c , .badpush2
5547
5547
ld e , a
5548
5548
ld a , (_YMax)
5549
- cp a , e
5549
+ scf
5550
+ sbc a , e
5550
5551
jr c , .badpush2 ; compare y values
5551
5552
dec bc
5552
5553
ld (iy + 3 ) , bc
Original file line number Diff line number Diff line change @@ -1650,7 +1650,7 @@ uint16_t gfx_Darken(uint16_t color,
1650
1650
* @note This routine performs clipping to stay within the window,
1651
1651
* but you must ensure it starts in the window.
1652
1652
*/
1653
- void gfx_FloodFill (unsigned int x ,
1653
+ void gfx_FloodFill (uint24_t x ,
1654
1654
uint8_t y ,
1655
1655
uint8_t color );
1656
1656
You can’t perform that action at this time.
0 commit comments