summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-06-04 18:55:51 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-06-04 18:55:51 +0000
commit482e83d09a1b4a8ea23aba8f00130137a00c6096 (patch)
treed57191575af1752764e075ac279a8d570ab97a31 /apps
parent27ebf86abcbc307a3fb9528a29f331095dce2312 (diff)
downloadrockbox-482e83d09a1b4a8ea23aba8f00130137a00c6096.tar.gz
rockbox-482e83d09a1b4a8ea23aba8f00130137a00c6096.tar.bz2
rockbox-482e83d09a1b4a8ea23aba8f00130137a00c6096.zip
Center Rockbox logo when smaller than the screen size.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29954 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/misc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 5a99db2d8b..12aaf08c7b 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -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),