Index: apps/main.c =================================================================== --- apps/main.c (revision 14207) +++ apps/main.c (working copy) @@ -253,7 +253,27 @@ lcd_remote_init(); #endif font_init(); + + /* just for the sim. This mimics the behaviour on target */ +#ifdef HAVE_LCD_BITMAP + static fb_data save_buffer2[LCD_WIDTH*LCD_HEIGHT]; + struct bitmap bm2; + int ret2 =0; + bm2.data = (char*)save_buffer2; + ret2 = read_bmp_file( "/.rockbox/splash.bmp", &bm2, LCD_WIDTH*LCD_HEIGHT*sizeof(fb_data), FORMAT_NATIVE | FORMAT_DITHER); + if(ret2 <= 0){ + show_logo(); + }else{ + lcd_bitmap(save_buffer2, 0, 0, bm2.width, bm2.height); + lcd_update(); + sleep(HZ*3); + } +#endif/* custom user splash screen */ + +#ifndef HAVE_LCD_BITMAP show_logo(); +#endif + button_init(); backlight_init(); lang_init(); @@ -341,7 +361,11 @@ #endif font_init(); +#ifndef HAVE_LCD_BITMAP +/* like this for the custom splash screen */ show_logo(); +#endif + lang_init(); #ifdef DEBUG @@ -490,6 +514,24 @@ gui_sync_wps_init(); settings_apply(); + +/* custom user splash screen */ +#ifdef HAVE_LCD_BITMAP + static fb_data save_buffer2[LCD_WIDTH*LCD_HEIGHT]; + struct bitmap bm2; + int ret2 =0; + bm2.data = (char*)save_buffer2; + ret2 = read_bmp_file( "/.rockbox/splash.bmp", &bm2, LCD_WIDTH*LCD_HEIGHT*sizeof(fb_data), FORMAT_NATIVE | FORMAT_DITHER); + if(ret2 <= 0){ + show_logo(); + }else{ + lcd_bitmap(save_buffer2, 0, 0, bm2.width, bm2.height); + lcd_update(); + sleep(HZ*3); + } +#endif/* custom user splash screen */ + + init_dircache(false); #ifdef HAVE_TAGCACHE init_tagcache();