diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2012-03-07 09:27:31 +0100 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2012-03-19 08:45:11 +0100 |
commit | 69978d7046cd7e537c5079a5e306d22621a1767a (patch) | |
tree | 20426f363cc5378efc07f87d8b874119194f0b07 | |
parent | e1796fbc20e6aa3808a65ba7ac9ca08847e6595f (diff) | |
download | rockbox-69978d7046cd7e537c5079a5e306d22621a1767a.tar.gz rockbox-69978d7046cd7e537c5079a5e306d22621a1767a.zip |
center logo horizontaly in bootloader version of show_logo()
Change-Id: I537466825de7f3bc8d55d9519cd27f562fbb344f
-rw-r--r-- | bootloader/show_logo.c | 5 |
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 @@ | |||
36 | /* Ensure TEXT_XPOS is >= 0 */ | 36 | /* Ensure TEXT_XPOS is >= 0 */ |
37 | #define TEXT_WIDTH ((sizeof(BOOT_VERSION)-1)*SYSFONT_WIDTH) | 37 | #define TEXT_WIDTH ((sizeof(BOOT_VERSION)-1)*SYSFONT_WIDTH) |
38 | #define TEXT_XPOS ((TEXT_WIDTH > LCD_WIDTH) ? 0 : ((LCD_WIDTH - TEXT_WIDTH) / 2)) | 38 | #define TEXT_XPOS ((TEXT_WIDTH > LCD_WIDTH) ? 0 : ((LCD_WIDTH - TEXT_WIDTH) / 2)) |
39 | #define LOGO_XPOS ((LCD_WIDTH - BMPWIDTH_rockboxlogo) / 2) | ||
39 | 40 | ||
40 | void show_logo( void ) | 41 | void show_logo( void ) |
41 | { | 42 | { |
@@ -46,9 +47,9 @@ void show_logo( void ) | |||
46 | /* The top 16 lines of the Sansa Clip screen are yellow, and the bottom 48 | 47 | /* The top 16 lines of the Sansa Clip screen are yellow, and the bottom 48 |
47 | are blue, so we reverse the usual positioning */ | 48 | are blue, so we reverse the usual positioning */ |
48 | lcd_putsxy(TEXT_XPOS, 0, BOOT_VERSION); | 49 | lcd_putsxy(TEXT_XPOS, 0, BOOT_VERSION); |
49 | lcd_bmp(&bm_rockboxlogo, 0, 16); | 50 | lcd_bmp(&bm_rockboxlogo, LOGO_XPOS, 16); |
50 | #else | 51 | #else |
51 | lcd_bmp(&bm_rockboxlogo, 0, 10); | 52 | lcd_bmp(&bm_rockboxlogo, LOGO_XPOS, 10); |
52 | lcd_putsxy(TEXT_XPOS, LCD_HEIGHT-SYSFONT_HEIGHT, BOOT_VERSION); | 53 | lcd_putsxy(TEXT_XPOS, LCD_HEIGHT-SYSFONT_HEIGHT, BOOT_VERSION); |
53 | #endif | 54 | #endif |
54 | 55 | ||