summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-11-27 12:51:08 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-11-27 12:51:08 +0000
commit797e8f42ba549b67ea827dd9cfba4b77bc29b3f1 (patch)
treee03ba0959f8eff3951f32e9d60535900f804e99f
parent23e59f20bf3651d1cf3dcedc08ddc10de9827f3d (diff)
downloadrockbox-797e8f42ba549b67ea827dd9cfba4b77bc29b3f1.tar.gz
rockbox-797e8f42ba549b67ea827dd9cfba4b77bc29b3f1.tar.bz2
rockbox-797e8f42ba549b67ea827dd9cfba4b77bc29b3f1.zip
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
-rw-r--r--apps/misc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 9559b0c44f..11cdee17b9 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -977,11 +977,19 @@ int show_logo( void )
snprintf(version, sizeof(version), "Ver. %s", appsversion);
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_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);
+#endif
lcd_setfont(FONT_UI);
#else