Add effective clockrate for realtime decoding to the displayed results of test_codec...
[kugel-rb.git] / bootloader / show_logo.c
bloba875471b19ef81253db4afb978c98376b6367c61
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2008 by Barry Wardell
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #include "lcd.h"
20 #include "lcd-remote.h"
21 #include "font.h"
22 #include <stdio.h>
23 #include <string.h>
25 #include "rockboxlogo.h"
27 int show_logo( void )
29 char boot_version[32];
31 snprintf(boot_version, sizeof(boot_version), "Boot Ver. %s", APPSVERSION);
33 lcd_clear_display();
34 lcd_bitmap(rockboxlogo, 0, 10, BMPWIDTH_rockboxlogo, BMPHEIGHT_rockboxlogo);
35 lcd_setfont(FONT_SYSFIXED);
36 lcd_putsxy((LCD_WIDTH/2) - ((strlen(boot_version)*SYSFONT_WIDTH)/2),
37 LCD_HEIGHT-SYSFONT_HEIGHT, (unsigned char *)boot_version);
39 lcd_update();
41 return 0;