summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2012-03-07 09:27:31 +0100
committerMarcin Bukat <marcin.bukat@gmail.com>2012-03-19 08:45:11 +0100
commit69978d7046cd7e537c5079a5e306d22621a1767a (patch)
tree20426f363cc5378efc07f87d8b874119194f0b07 /bootloader
parente1796fbc20e6aa3808a65ba7ac9ca08847e6595f (diff)
downloadrockbox-69978d7046cd7e537c5079a5e306d22621a1767a.tar.gz
rockbox-69978d7046cd7e537c5079a5e306d22621a1767a.tar.bz2
rockbox-69978d7046cd7e537c5079a5e306d22621a1767a.zip
center logo horizontaly in bootloader version of show_logo()
Change-Id: I537466825de7f3bc8d55d9519cd27f562fbb344f
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/show_logo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bootloader/show_logo.c b/bootloader/show_logo.c
index 60481367d5..538e90299a 100644
--- a/bootloader/show_logo.c
+++ b/bootloader/show_logo.c
@@ -36,6 +36,7 @@
/* Ensure TEXT_XPOS is >= 0 */
#define TEXT_WIDTH ((sizeof(BOOT_VERSION)-1)*SYSFONT_WIDTH)
#define TEXT_XPOS ((TEXT_WIDTH > LCD_WIDTH) ? 0 : ((LCD_WIDTH - TEXT_WIDTH) / 2))
+#define LOGO_XPOS ((LCD_WIDTH - BMPWIDTH_rockboxlogo) / 2)
void show_logo( void )
{
@@ -46,9 +47,9 @@ void show_logo( void )
/* The top 16 lines of the Sansa Clip screen are yellow, and the bottom 48
are blue, so we reverse the usual positioning */
lcd_putsxy(TEXT_XPOS, 0, BOOT_VERSION);
- lcd_bmp(&bm_rockboxlogo, 0, 16);
+ lcd_bmp(&bm_rockboxlogo, LOGO_XPOS, 16);
#else
- lcd_bmp(&bm_rockboxlogo, 0, 10);
+ lcd_bmp(&bm_rockboxlogo, LOGO_XPOS, 10);
lcd_putsxy(TEXT_XPOS, LCD_HEIGHT-SYSFONT_HEIGHT, BOOT_VERSION);
#endif