video: reverted rectangle despawn to use bottom corner
authorLukas Krickl <lukas@krickl.dev>
Fri, 10 Oct 2025 04:41:56 +0000 (06:41 +0200)
committerLukas Krickl <lukas@krickl.dev>
Fri, 10 Oct 2025 04:41:56 +0000 (06:41 +0200)
This will need some rework later. Using the bottom corner caps
the possible size of rectangles.

src/video.s

index 33f3bc4380037447a2a40dc263367b45c7a50685..d5843867726c6063910f26260206633a89b9f112 100644 (file)
@@ -151,11 +151,7 @@ scroll_up_adjust:
 
                pop de
                push de
-               ; go to r_h
-               inc hl ; hl = r_h
-               sub a, [hl]
-               capunderflow
-               ; despawn if *top* corner is far off-screen
+               ; despawn if *bottom* corner is far off-screen
                cp a, 0xA0 
                call nc, rect_despawn