diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/logo.c | 63 | ||||
-rw-r--r-- | apps/gui/logo.h | 43 |
2 files changed, 0 insertions, 106 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 | |||
29 | struct 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 | ||
38 | struct logo usb_logos[]= | ||
39 | { | ||
40 | [SCREEN_MAIN]={"[USB Mode]"} | ||
41 | }; | ||
42 | #endif | ||
43 | |||
44 | void 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 | } | ||
diff --git a/apps/gui/logo.h b/apps/gui/logo.h deleted file mode 100644 index 6bd6e20b19..0000000000 --- a/apps/gui/logo.h +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2005 by Kevin Ferrare | ||
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 | #ifndef _GUI_LOGO_H_ | ||
21 | #define _GUI_LOGO_H_ | ||
22 | #include "screen_access.h" | ||
23 | |||
24 | struct logo{ | ||
25 | #ifdef HAVE_LCD_BITMAP | ||
26 | const fb_data* bitmap; | ||
27 | int width; | ||
28 | int height; | ||
29 | #else | ||
30 | const char * text; | ||
31 | #endif | ||
32 | }; | ||
33 | |||
34 | extern struct logo usb_logos[]; | ||
35 | |||
36 | /* | ||
37 | * Draws the given logo at the center of the given screen | ||
38 | * - logo : the logo | ||
39 | * - display : the screen to draw on | ||
40 | */ | ||
41 | void gui_logo_draw(struct logo * logo, struct screen * display); | ||
42 | |||
43 | #endif /* _GUI_LOGO_H_ */ | ||