From 28653a497989e5d3c202c525983dbc16fe576b50 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Sun, 22 Sep 2013 07:59:38 -0300 Subject: [PATCH] Menu: Use function plat_get_skin_dir to locate bg image --- platform/common/menu_pico.c | 7 +++++-- platform/libpicofe | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/platform/common/menu_pico.c b/platform/common/menu_pico.c index 306326b..32a3fdb 100644 --- a/platform/common/menu_pico.c +++ b/platform/common/menu_pico.c @@ -119,11 +119,14 @@ static void menu_enter(int is_rom_loaded) } else { + int pos; char buff[256]; + pos = plat_get_skin_dir(buff, 256); + strcpy(buff + pos, "background.png"); // should really only happen once, on startup.. - emu_make_path(buff, "skin/background.png", sizeof(buff)); - if (readpng(g_menubg_ptr, buff, READPNG_BG, g_menuscreen_w, g_menuscreen_h) < 0) + if (readpng(g_menubg_ptr, buff, READPNG_BG, + g_menuscreen_w, g_menuscreen_h) < 0) memset(g_menubg_ptr, 0, g_menuscreen_w * g_menuscreen_h * 2); } diff --git a/platform/libpicofe b/platform/libpicofe index 3901448..c52e662 160000 --- a/platform/libpicofe +++ b/platform/libpicofe @@ -1 +1 @@ -Subproject commit 39014486f9e50110d23dece007ce4c0ed90d15b1 +Subproject commit c52e6628cdf9c53e9143e903ab793bf59987a0ea -- 2.39.2