Rename variables sectorbuf and verbose to avoid clashes in rbutil. Cleanup exports...
[Rockbox.git] / apps / player / icons.c
blob7460a8fcf24f556a2da5bb85809d195a6e77c907
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 Jonathan Gordon
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 "icon.h"
22 #ifdef HAVE_LCD_CHARCELLS
23 /* For the moment, charcell cant load custom maps... */
25 enum old_values{
26 old_Icon_Queued = 'Q',
27 old_Icon_Moving = 'M',
28 old_Icon_Unknown = 0xe100,
29 old_Icon_Bookmark,
30 old_Icon_Plugin,
31 old_Icon_Folder,
32 old_Icon_Firmware,
33 old_Icon_Language,
34 old_Icon_Audio,
35 old_Icon_Wps,
36 old_Icon_Playlist,
37 old_Icon_Text,
38 old_Icon_Config,
41 static const unsigned short icons[Icon_Last_Themeable] = {
42 [0 ... Icon_Last_Themeable-1] = ' ',
44 [Icon_Audio] = old_Icon_Audio,
45 [Icon_Folder] = old_Icon_Folder,
46 [Icon_Playlist] = old_Icon_Playlist,
47 [Icon_Cursor] = CURSOR_CHAR,
48 [Icon_Wps] = old_Icon_Wps,
49 [Icon_Firmware] = old_Icon_Firmware,
50 [Icon_Language] = old_Icon_Language,
51 [Icon_Config] = old_Icon_Config,
52 [Icon_Plugin] = old_Icon_Plugin,
53 [Icon_Bookmark] = old_Icon_Bookmark,
54 [Icon_Queued] = old_Icon_Queued,
55 [Icon_Moving] = old_Icon_Moving,
58 [Icon_Keyboard] = ,
59 [Icon_Font] = ,
60 [Icon_Preset] = ,
61 [Icon_Reverse_Cursor] = ,
62 [Icon_Questionmark] = ,
63 [Icon_Menu_setting] = ,
64 [Icon_Menu_functioncall] = ,
65 [Icon_Submenu] = ,
66 [Icon_Submenu_Entered] = ,
67 [Icon_Recording] = ,
68 [Icon_Voice] = ,
69 [Icon_General_settings_menu] = ,
70 [Icon_System_menu] = ,
71 [Icon_Playback_menu] = ,
72 [Icon_Display_menu] = ,
73 [Icon_Remote_Display_menu] = ,
74 [Icon_Radio_screen] = ,
75 [Icon_file_view_menu] = ,
76 [Icon_EQ] = ,
77 [Icon_Rockbox] = ,
81 /* as above, but x,y are letter position, NOT PIXEL */
82 extern void screen_put_iconxy(struct screen * screen,
83 int x, int y, enum themable_icons icon)
85 if (icon == Icon_NOICON)
86 screen->putc(x, y, ' ');
87 else if (icon >= Icon_Last_Themeable)
88 screen->putc(x, y, old_Icon_Unknown);
89 else
90 screen->putc(x, y, icons[icon]);
93 void screen_put_cursorxy(struct screen * display, int x, int y, bool on)
95 screen_put_iconxy(display, x, y, on?Icon_Cursor:-1);
99 void icons_init(void)
108 #endif