Index: apps/main.c =================================================================== --- apps/main.c (revision 14197) +++ apps/main.c (working copy) @@ -503,6 +503,31 @@ eeprom_settings_store(); } #endif + +#ifdef HAVE_LCD_BITMAP + int fd2; + int timer=0; + fd2 = open("/.rockbox/splash.cfg", O_RDONLY); + if(fd2 > 0) + { + char splashbuffer[2]; + read_line(fd2,splashbuffer,2); + close(fd2); + timer = atoi(splashbuffer); + static fb_data save_buffer2[LCD_WIDTH*LCD_HEIGHT*sizeof(fb_data)]; + struct bitmap bm2; + bool ret2; + bm2.data = (char*)save_buffer2; + ret2 = read_bmp_file( "/splash.bmp", &bm2, LCD_WIDTH*LCD_HEIGHT*sizeof(fb_data), FORMAT_NATIVE | FORMAT_DITHER); + if(ret2 > 0){ + lcd_clear_display(); + lcd_bitmap(save_buffer2, 0, 0, bm2.width, bm2.height); + lcd_update(); + sleep(HZ*timer); + } + } +#endif + status_init(); playlist_init(); tree_mem_init();