foo
authorJohn Tsiombikas <nuclear@member.fsf.org>
Mon, 31 Oct 2022 23:15:41 +0000 (01:15 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Mon, 31 Oct 2022 23:15:41 +0000 (01:15 +0200)
src/ctrlscr.c
src/menuscr.c

index 72aeeec..f9008a0 100644 (file)
@@ -5,6 +5,7 @@
 #include "dma.h"
 #include "input.h"
 #include "debug.h"
+#include "timer.h"
 
 static int ctrlscr_start(void);
 static void ctrlscr_stop(void);
@@ -57,6 +58,7 @@ static void ctrlscr_frame(void)
 
        if(KEYPRESS(BN_START) || KEYPRESS(BN_A) || KEYPRESS(BN_B)) {
                change_screen(find_screen("menu"));
+               delay(250);
                return;
        }
 
index e613b10..7db5542 100644 (file)
@@ -68,8 +68,8 @@ static int menuscr_start(void)
        wait_vblank();
        spr_clear();
 
-       cur_x = pos[0][0] - CUR_XOFFS;
-       cur_y = pos[0][1];
+       cur_x = pos[sel][0] - CUR_XOFFS;
+       cur_y = pos[sel][1];
 
        running = 1;
        return 0;