X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmenuscr.c;h=b0e7fb92a848003b987384758c2c3d7ec24b79df;hb=3fe0918c7a62a8e8a3ff169b108c74a1211e9003;hp=11abf4435b395cba4d33c28e0ceb5143535130cf;hpb=1ee7845621c04020321fa8dfb6dcbf3d8c6c9b51;p=eradicate diff --git a/src/menuscr.c b/src/menuscr.c index 11abf44..b0e7fb9 100644 --- a/src/menuscr.c +++ b/src/menuscr.c @@ -1,5 +1,5 @@ #include -#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)