diff options
-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 | ||