Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: NaFIann on November 24, 2007, 11:31:12 AM

Title: Version number at startup
Post by: NaFIann on November 24, 2007, 11:31:12 AM
Hey

I've made a personal fullscreen splash screen for rockbox (Don't worry, it even still says Rockbox :D).
This works wonderfully except that the lower part promptly gets overwritten by the rockbox version number. So my question is: what do I have to delete / comment out / add to the code to remove this?

NaFiann
Title: Re: Version number at startup
Post by: LinusN on November 25, 2007, 05:04:38 AM
In apps/misc.c, in the show_logo() function, remove this code:

Code: [Select]
   lcd_setfont(FONT_SYSFIXED);
    lcd_getstringsize((unsigned char *)"A", &font_w, &font_h);
    lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2),
               LCD_HEIGHT-font_h, (unsigned char *)version);
    lcd_setfont(FONT_UI);
Title: Re: Version number at startup
Post by: Job Van Dam on November 26, 2007, 03:38:05 PM
Hmmmm, In apps/misc.c I just change:

Code: [Select]
snprintf(version, sizeof(version), "Ver. %s", appsversion);TO
Code: [Select]
snprintf(version, sizeof(version), "", appsversion);
It gives an error about zero-length string but it still compiles fine.