Skip to content

Commit 9fc6b50

Browse files
runer112mateoconlechuga
authored andcommitted
Fix 1-wide gfx_Rectangle_NoClip
1 parent 56599ec commit 9fc6b50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/graphx/graphx.asm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,10 +912,11 @@ _HorizLine_NoClip_Draw:
912912
ld (hl),0
913913
smcByte _Color
914914
cpi
915-
ret po
916915
ex de,hl
917916
ld hl,-1
918917
add hl,de
918+
; Delay 1-wide early return for consistent register output values.
919+
ret po
919920
ldir
920921
ret
921922

0 commit comments

Comments
 (0)