Only call rarch_main_data_msg_queue_push if settings->menu.wallpaper

has a valid path set
This commit is contained in:
twinaphex 2015-05-19 22:14:00 +02:00
parent 6c5a4a84b5
commit 004dcf0bf1

View File

@ -478,6 +478,7 @@ static void *glui_init(void)
glui_allocate_white_texture(glui); glui_allocate_white_texture(glui);
if (settings->menu.wallpaper[0] != '\0')
rarch_main_data_msg_queue_push(DATA_TYPE_IMAGE, rarch_main_data_msg_queue_push(DATA_TYPE_IMAGE,
settings->menu.wallpaper, "cb_menu_wallpaper", 0, 1, true); settings->menu.wallpaper, "cb_menu_wallpaper", 0, 1, true);