summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h2
-rw-r--r--apps/screen_access.c8
-rw-r--r--firmware/export/lcd.h1
-rw-r--r--firmware/usb.c3
-rw-r--r--uisimulator/common/sim_icons.c2
-rw-r--r--uisimulator/common/sim_icons.h27
7 files changed, 2 insertions, 43 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 90081cc..31de9fa 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -81,7 +81,7 @@ static const struct plugin_api rockbox_api = {
lcd_putc,
lcd_put_cursor,
lcd_remove_cursor,
- PREFIX(lcd_icon),
+ lcd_icon,
lcd_double_height,
#else
lcd_set_drawmode,
diff --git a/apps/plugin.h b/apps/plugin.h
index cb076f5..ccc8d1c 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -149,7 +149,7 @@ struct plugin_api {
void (*lcd_putc)(int x, int y, unsigned long ucs);
void (*lcd_put_cursor)(int x, int y, unsigned long ucs);
void (*lcd_remove_cursor)(void);
- void (*PREFIX(lcd_icon))(int icon, bool enable);
+ void (*lcd_icon)(int icon, bool enable);
void (*lcd_double_height)(bool on);
#else
void (*lcd_set_drawmode)(int mode);
diff --git a/apps/screen_access.c b/apps/screen_access.c
index 89b09ad..03687a3 100644
--- a/apps/screen_access.c
+++ b/apps/screen_access.c
@@ -81,11 +81,7 @@ void screen_init(struct screen * screen, enum screen_type screen_type)
screen->putc=&lcd_remote_putc;
screen->get_locked_pattern=&lcd_remote_get_locked_pattern;
screen->define_pattern=&lcd_remote_define_pattern;
-#ifdef SIMULATOR
- screen->icon=&sim_lcd_remote_icon;
-#else
screen->icon=&lcd_remote_icon;
-#endif
#endif /* 0 */
screen->init=&lcd_remote_init;
@@ -164,11 +160,7 @@ void screen_init(struct screen * screen, enum screen_type screen_type)
screen->putc=&lcd_putc;
screen->get_locked_pattern=&lcd_get_locked_pattern;
screen->define_pattern=&lcd_define_pattern;
-#ifdef SIMULATOR
- screen->icon=&sim_lcd_icon;
-#else
screen->icon=&lcd_icon;
-#endif
#endif /* HAVE_LCD_CHARCELLS */
screen->init=&lcd_init;
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 68f0961..40e5129 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -28,7 +28,6 @@
#define STYLE_INVERT 1
#ifdef SIMULATOR
-#define lcd_icon(x,y) sim_lcd_icon(x,y)
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
diff --git a/firmware/usb.c b/firmware/usb.c
index f5deed4..aa6981d 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -298,9 +298,6 @@ static void usb_thread(void)
waiting_for_ack = true;
DEBUGF("USB extracted. Waiting for ack from %d threads...\n",
num_acks_to_expect);
-#ifdef HAVE_LCD_CHARCELLS
- lcd_icon(ICON_USB, false);
-#endif
break;
case SYS_USB_DISCONNECTED_ACK:
diff --git a/uisimulator/common/sim_icons.c b/uisimulator/common/sim_icons.c
index e60182f..f24fce2 100644
--- a/uisimulator/common/sim_icons.c
+++ b/uisimulator/common/sim_icons.c
@@ -19,8 +19,6 @@
#include "config.h"
#ifdef HAVE_LCD_CHARCELLS
-#include "sim_icons.h"
-
#include <lcd.h>
#include <kernel.h>
#include <sprintf.h>
diff --git a/uisimulator/common/sim_icons.h b/uisimulator/common/sim_icons.h
deleted file mode 100644
index 4555b65..0000000
--- a/uisimulator/common/sim_icons.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/***************************************************************************
- * __________ __ ___.
- * Open \______ \ ____ ____ | | _\_ |__ _______ ___
- * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
- * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
- * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
- * \/ \/ \/ \/ \/
- * $Id$
- *
- * Copyright (C) 2002 Mats Lidell <matsl@contactor.se>
- *
- * All files in this archive are subject to the GNU General Public License.
- * See the file COPYING in the source tree root for full license agreement.
- *
- * This software is distributed on an "AS IS" basis, WITH OUT WARRANTY OF ANY
- * KIND, either express or implied.
- *
- ****************************************************************************/
-
-#ifndef SIM_ICONS
-#define SIM_ICONS
-
-#include <stdbool.h>
-
-extern void sim_lcd_icon(int icon, bool enable);
-
-#endif /* SIM_ICONS */