1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2007 Jonathan Gordon
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 ****************************************************************************/
24 #ifdef HAVE_LCD_CHARCELLS
25 /* For the moment, charcell cant load custom maps... */
28 old_Icon_Queued
= 'Q',
29 old_Icon_Moving
= 'M',
30 old_Icon_Unknown
= 0xe100,
43 static const unsigned short icons
[Icon_Last_Themeable
] = {
44 [0 ... Icon_Last_Themeable
-1] = ' ',
46 [Icon_Audio
] = old_Icon_Audio
,
47 [Icon_Folder
] = old_Icon_Folder
,
48 [Icon_Playlist
] = old_Icon_Playlist
,
49 [Icon_Cursor
] = CURSOR_CHAR
,
50 [Icon_Wps
] = old_Icon_Wps
,
51 [Icon_Firmware
] = old_Icon_Firmware
,
52 [Icon_Language
] = old_Icon_Language
,
53 [Icon_Config
] = old_Icon_Config
,
54 [Icon_Plugin
] = old_Icon_Plugin
,
55 [Icon_Bookmark
] = old_Icon_Bookmark
,
56 [Icon_Queued
] = old_Icon_Queued
,
57 [Icon_Moving
] = old_Icon_Moving
,
63 [Icon_Reverse_Cursor] = ,
64 [Icon_Questionmark] = ,
65 [Icon_Menu_setting] = ,
66 [Icon_Menu_functioncall] = ,
68 [Icon_Submenu_Entered] = ,
71 [Icon_General_settings_menu] = ,
72 [Icon_System_menu] = ,
73 [Icon_Playback_menu] = ,
74 [Icon_Display_menu] = ,
75 [Icon_Remote_Display_menu] = ,
76 [Icon_Radio_screen] = ,
77 [Icon_file_view_menu] = ,
83 /* as above, but x,y are letter position, NOT PIXEL */
84 extern void screen_put_iconxy(struct screen
* screen
,
85 int x
, int y
, enum themable_icons icon
)
87 if (icon
== Icon_NOICON
)
88 screen
->putc(x
, y
, ' ');
89 else if (icon
>= Icon_Last_Themeable
)
90 screen
->putc(x
, y
, old_Icon_Unknown
);
92 screen
->putc(x
, y
, icons
[icon
]);
95 void screen_put_cursorxy(struct screen
* display
, int x
, int y
, bool on
)
97 screen_put_iconxy(display
, x
, y
, on
?Icon_Cursor
:-1);
101 void icons_init(void)