logo
[eradicate] / src / menuscr.c
index 11abf44..b0e7fb9 100644 (file)
@@ -1,5 +1,5 @@
 #include <stdio.h>
-#include "menuscr.h"
+#include "screens.h"
 #include "imago2.h"
 #include "gfx.h"
 #include "gfxutil.h"
@@ -10,7 +10,7 @@ static int bgwidth, bgheight;
 
 int menu_init(void)
 {
-       if(!(bgpix = img_load_pixels("data/menpg640.png", &bgwidth, &bgheight, IMG_FMT_RGB24))) {
+       if(!(bgpix = img_load_pixels("data/menbg640.png", &bgwidth, &bgheight, IMG_FMT_RGB24))) {
                fprintf(stderr, "failed to load menu bg image\n");
                return -1;
        }
@@ -25,6 +25,8 @@ void menu_cleanup(void)
 
 void menu_start(void)
 {
+       draw = menu_draw;
+       key_event = menu_keyb;
 }
 
 void menu_stop(void)