From: Lukas Krickl Date: Sun, 21 Sep 2025 15:59:53 +0000 (+0200) Subject: debug: Fixed x positons for right points in debug rectangle X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=5daa3f5f4f5198b3bf1b18f5bbebb25d786570b4;p=gbrg%2F.git debug: Fixed x positons for right points in debug rectangle --- diff --git a/src/debug.s b/src/debug.s index d4e0882..66f26bc 100644 --- a/src/debug.s +++ b/src/debug.s @@ -152,8 +152,7 @@ dbg_rect_draw: ; write bottomt right x ld a, [de] - sub a, c - add a, OBJ_OFF_X + 8 + add a, c ; width + x ld [hl+], a ; write tile @@ -180,8 +179,7 @@ dbg_rect_draw: ; write top left x inc de ; de = width ld a, [de] - sub a, c - add a, OBJ_OFF_X + 8 + add a, c ; width + x ld [hl+], a ; write tile