mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Sansa Clip: Make show_logo() put the text in the yellow area of the screen
and the logo in the blue area (like for the bootloader) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19246 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
23e59f20bf
commit
797e8f42ba
1 changed files with 8 additions and 0 deletions
|
|
@ -977,11 +977,19 @@ int show_logo( void )
|
||||||
snprintf(version, sizeof(version), "Ver. %s", appsversion);
|
snprintf(version, sizeof(version), "Ver. %s", appsversion);
|
||||||
|
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
|
#ifdef SANSA_CLIP /* display the logo in the blue area of the screen */
|
||||||
|
lcd_setfont(FONT_SYSFIXED);
|
||||||
|
lcd_getstringsize((unsigned char *)"A", &font_w, &font_h);
|
||||||
|
lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2),
|
||||||
|
0, (unsigned char *)version);
|
||||||
|
lcd_bitmap(rockboxlogo, 0, 16, BMPWIDTH_rockboxlogo, BMPHEIGHT_rockboxlogo);
|
||||||
|
#else
|
||||||
lcd_bitmap(rockboxlogo, 0, 10, BMPWIDTH_rockboxlogo, BMPHEIGHT_rockboxlogo);
|
lcd_bitmap(rockboxlogo, 0, 10, BMPWIDTH_rockboxlogo, BMPHEIGHT_rockboxlogo);
|
||||||
lcd_setfont(FONT_SYSFIXED);
|
lcd_setfont(FONT_SYSFIXED);
|
||||||
lcd_getstringsize((unsigned char *)"A", &font_w, &font_h);
|
lcd_getstringsize((unsigned char *)"A", &font_w, &font_h);
|
||||||
lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2),
|
lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2),
|
||||||
LCD_HEIGHT-font_h, (unsigned char *)version);
|
LCD_HEIGHT-font_h, (unsigned char *)version);
|
||||||
|
#endif
|
||||||
lcd_setfont(FONT_UI);
|
lcd_setfont(FONT_UI);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue