summaryrefslogtreecommitdiff
path: root/apps/gui/logo.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/logo.c')
-rw-r--r--apps/gui/logo.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/apps/gui/logo.c b/apps/gui/logo.c
deleted file mode 100644
index f1a4786137..0000000000
--- a/apps/gui/logo.c
+++ /dev/null
@@ -1,63 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 Björn Stenberg
11 *
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.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#include "logo.h"
21
22#ifdef HAVE_LCD_BITMAP
23
24#include <bitmaps/usblogo.h>
25#if NB_SCREENS==2
26#include <bitmaps/remote_usblogo.h>
27#endif
28
29struct logo usb_logos[]=
30{
31 [SCREEN_MAIN]={usblogo, BMPWIDTH_usblogo, BMPHEIGHT_usblogo},
32#if NB_SCREENS==2
33 [SCREEN_REMOTE]={remote_usblogo, BMPWIDTH_remote_usblogo, BMPHEIGHT_remote_usblogo}
34#endif
35
36};
37#else
38struct logo usb_logos[]=
39{
40 [SCREEN_MAIN]={"[USB Mode]"}
41};
42#endif
43
44void gui_logo_draw(struct logo * logo, struct screen * display)
45{
46 display->clear_display();
47
48#ifdef HAVE_LCD_BITMAP
49 /* Center bitmap on screen */
50 display->bitmap(logo->bitmap,
51 display->width/2-logo->width/2,
52 display->height/2-logo->height/2,
53 logo->width,
54 logo->height);
55 display->update();
56#else
57 display->double_height(false);
58 display->puts_scroll(0, 0, logo->text);
59#ifdef SIMULATOR
60 display->update();
61#endif /* SIMULATOR */
62#endif /* HAVE_LCD_BITMAP */
63}