projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8ba6a8
)
video: reverted rectangle despawn to use bottom corner
author
Lukas Krickl
<lukas@krickl.dev>
Fri, 10 Oct 2025 04:41:56 +0000
(06:41 +0200)
committer
Lukas 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
patch
|
blob
|
history
diff --git
a/src/video.s
b/src/video.s
index 33f3bc4380037447a2a40dc263367b45c7a50685..d5843867726c6063910f26260206633a89b9f112 100644
(file)
--- a/
src/video.s
+++ b/
src/video.s
@@
-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