From 323d75d25f58f6e13c91fe1c42e974cc6fb54c19 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 3 Apr 2007 18:06:13 +0000 Subject: [PATCH] It's not necessary (anymore?) to map lcd_icon() to sim_lcd_icon() for the simulator. * Removed a stray lcd_icon() call from usb handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13006 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 2 +- apps/plugin.h | 2 +- apps/screen_access.c | 8 -------- firmware/export/lcd.h | 1 - firmware/usb.c | 3 --- uisimulator/common/sim_icons.c | 2 -- uisimulator/common/sim_icons.h | 27 --------------------------- 7 files changed, 2 insertions(+), 43 deletions(-) delete mode 100644 uisimulator/common/sim_icons.h diff --git a/apps/plugin.c b/apps/plugin.c index 90081cc07d..31de9fa56f 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 cb076f5b85..ccc8d1c3af 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 89b09ad959..03687a3dbb 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 68f0961a5c..40e5129ad3 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 f5deed4da6..aa6981ddf2 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 e60182fa63..f24fce2ca5 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 #include #include diff --git a/uisimulator/common/sim_icons.h b/uisimulator/common/sim_icons.h deleted file mode 100644 index 4555b65189..0000000000 --- a/uisimulator/common/sim_icons.h +++ /dev/null @@ -1,27 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2002 Mats Lidell - * - * 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 - -extern void sim_lcd_icon(int icon, bool enable); - -#endif /* SIM_ICONS */