#include <stdio.h>
-#include "menuscr.h"
+#include "screens.h"
#include "imago2.h"
#include "gfx.h"
#include "gfxutil.h"
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;
}
void menu_start(void)
{
+ draw = menu_draw;
+ key_event = menu_keyb;
}
void menu_stop(void)