Remove useless operation.
[maemo-rb.git] / apps / player / icons.c
blob0d160bc967ba39ef7cfcdfadef8fd05048ef38d4
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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 ****************************************************************************/
21 #include "lcd.h"
22 #include "icon.h"
24 #ifdef HAVE_LCD_CHARCELLS
25 /* For the moment, charcell cant load custom maps... */
27 enum old_values{
28 old_Icon_Queued = 'Q',
29 old_Icon_Moving = 'M',
30 old_Icon_Unknown = 0xe100,
31 old_Icon_Bookmark,
32 old_Icon_Plugin,
33 old_Icon_Folder,
34 old_Icon_Firmware,
35 old_Icon_Language,
36 old_Icon_Audio,
37 old_Icon_Wps,
38 old_Icon_Playlist,
39 old_Icon_Text,
40 old_Icon_Config,
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,
60 [Icon_Keyboard] = ,
61 [Icon_Font] = ,
62 [Icon_Preset] = ,
63 [Icon_Reverse_Cursor] = ,
64 [Icon_Questionmark] = ,
65 [Icon_Menu_setting] = ,
66 [Icon_Menu_functioncall] = ,
67 [Icon_Submenu] = ,
68 [Icon_Submenu_Entered] = ,
69 [Icon_Recording] = ,
70 [Icon_Voice] = ,
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] = ,
78 [Icon_EQ] = ,
79 [Icon_Rockbox] = ,
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->putchar(x, y, ' ');
89 else if (icon >= Icon_Last_Themeable)
90 screen->putchar(x, y, old_Icon_Unknown);
91 else
92 screen->putchar(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)
110 #endif