Fix pagination for non-dynamic popup menus (speedrun menu) (#3883)

Was testing out adding ILs to the speedrun menu and noticed this wasn't
working properly

(video before the changes)

https://github.com/user-attachments/assets/e1e7f443-60d2-4b15-bc27-a20cbe4442d6

Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
This commit is contained in:
Matt Dallmeyer
2025-03-31 12:40:40 -07:00
committed by GitHub
parent 6871a3a067
commit e122941ede
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -136,7 +136,7 @@
font-ctx
buf
(= (+ i start-index) current-index))
(draw-entry (-> (-> this menu-states (-> this curr-state-index) entries) i) font-ctx buf (= (+ i start-index) current-index)))
(draw-entry (-> (-> this menu-states (-> this curr-state-index) entries) (+ i start-index)) font-ctx buf (= (+ i start-index) current-index)))
(set! (-> font-ctx origin y) (+ 15.0 (-> font-ctx origin y))))
(when (< end-index entry-count)
(clear *pc-encoded-temp-string*)
+1 -1
View File
@@ -135,7 +135,7 @@
font-ctx
buf
(= (+ i start-index) current-index))
(draw-entry (-> (-> this menu-states (-> this curr-state-index) entries) i) font-ctx buf (= (+ i start-index) current-index)))
(draw-entry (-> (-> this menu-states (-> this curr-state-index) entries) (+ i start-index)) font-ctx buf (= (+ i start-index) current-index)))
(set! (-> font-ctx origin y) (+ 15.0 (-> font-ctx origin y))))
(when (< end-index entry-count)
(clear *pc-encoded-temp-string*)