diff --git a/src/core/main.c b/src/core/main.c index 2f8b9f9c..c32c522d 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -136,8 +136,7 @@ void lvgl_init() { lv_disp_set_theme(dispp, theme); lv_obj_set_style_bg_color(lv_scr_act(), lv_color_make(64, 64, 64), 0); - // user wallpaper - if (load_wallpaper("/mnt/extsd/resource/OSD/GOGGLE/wallpaper.bmp")) { + if (load_wallpaper(WALLPAPER_PATH)) { lv_obj_t *img_obj = lv_img_create(lv_scr_act()); lv_img_set_src(img_obj, &img_menu_bg); } diff --git a/src/core/osd.h b/src/core/osd.h index 9c64f9a1..252afc92 100644 --- a/src/core/osd.h +++ b/src/core/osd.h @@ -19,6 +19,12 @@ extern "C" { #define OSD_BOUNDRY_0 0 #define OSD_BOUNDRY_1 6 +#ifdef EMULATOR_BUILD +#define WALLPAPER_PATH "wallpaper.bmp" +#else +#define WALLPAPER_PATH "/mnt/extsd/resource/OSD/GOGGLE/wallpaper.bmp" +#endif + typedef enum { OSD_RESOURCE_720 = 0, OSD_RESOURCE_1080,