Center Rockbox logo when smaller than the screen size.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29954 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
27ebf86abc
commit
482e83d09a
1 changed files with 4 additions and 2 deletions
|
@ -695,9 +695,11 @@ int show_logo( void )
|
|||
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);
|
||||
lcd_bitmap(rockboxlogo, (LCD_WIDTH - BMPWIDTH_rockboxlogo) / 2, 16,
|
||||
BMPWIDTH_rockboxlogo, BMPHEIGHT_rockboxlogo);
|
||||
#else
|
||||
lcd_bitmap(rockboxlogo, 0, 10, BMPWIDTH_rockboxlogo, BMPHEIGHT_rockboxlogo);
|
||||
lcd_bitmap(rockboxlogo, (LCD_WIDTH - BMPWIDTH_rockboxlogo) / 2, 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),
|
||||
|
|
Loading…
Reference in a new issue