1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2008 by Barry Wardell
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #include "lcd-remote.h"
28 #include "bitmaps/rockboxlogo.h"
31 #define BOOT_VERSION ("Boot " RBVERSION)
33 #define BOOT_VERSION ("Boot Ver. " RBVERSION)
36 /* Ensure TEXT_XPOS is >= 0 */
37 #define TEXT_WIDTH ((sizeof(BOOT_VERSION)-1)*SYSFONT_WIDTH)
38 #define TEXT_XPOS ((TEXT_WIDTH > LCD_WIDTH) ? 0 : ((LCD_WIDTH - TEXT_WIDTH) / 2))
40 void show_logo( void )
43 lcd_setfont(FONT_SYSFIXED
);
45 #if defined(SANSA_CLIP) || defined(SANSA_CLIPV2) || defined(SANSA_CLIPPLUS)
46 /* 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 lcd_putsxy(TEXT_XPOS
, 0, BOOT_VERSION
);
49 lcd_bmp(&bm_rockboxlogo
, 0, 16);
51 lcd_bmp(&bm_rockboxlogo
, 0, 10);
52 lcd_putsxy(TEXT_XPOS
, LCD_HEIGHT
-SYSFONT_HEIGHT
, BOOT_VERSION
);