X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fplat.c;h=8b9e0ae2e65ebb18dfd13aa2b544873f73e3f4b7;hb=45deb4099e6d20780376e6425d43107120a10bc6;hp=568d3632de3a701dbe9a86f4ec753f6a7c5d8f61;hpb=8e77275edade55d89b0723a60ab4ef1e2ec288de;p=libpicofe.git diff --git a/gp2x/plat.c b/gp2x/plat.c index 568d363..8b9e0ae 100644 --- a/gp2x/plat.c +++ b/gp2x/plat.c @@ -78,8 +78,12 @@ void plat_video_menu_enter(int is_rom_loaded) } else { + char buff[256]; + // should really only happen once, on startup.. - readpng(g_screen_ptr, "skin/background.png", READPNG_BG); + emu_make_path(buff, "skin/background.png", sizeof(buff)); + if (readpng(g_screen_ptr, buff, READPNG_BG) < 0) + memset(g_screen_ptr, 0, 320*240*2); } // copy to buffer2