summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-27 17:55:05 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-27 17:55:05 +0000
commit3598eb02d7ac5ee0eba1aeceacf52a4ba1b866bb (patch)
tree45b80f78a640e2f86f6671bd9ff6a93d7f0712a0
parentf814a44c473af227ebaef568e747c58279e69dbb (diff)
downloadrockbox-3598eb02d7ac5ee0eba1aeceacf52a4ba1b866bb.tar.gz
rockbox-3598eb02d7ac5ee0eba1aeceacf52a4ba1b866bb.tar.bz2
rockbox-3598eb02d7ac5ee0eba1aeceacf52a4ba1b866bb.zip
Do some #ifdef'ing to make the Player happy.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22520 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/skin_engine/skin_display.c4
-rw-r--r--apps/gui/wps.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index e674c9becf..a6cab63829 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -129,6 +129,8 @@ bool skin_update(struct gui_wps *gwps, unsigned int update_type)
return retval;
}
+#ifdef HAVE_LCD_BITMAP
+
void skin_statusbar_changed(struct gui_wps *skin)
{
if (!skin)
@@ -159,8 +161,6 @@ void skin_statusbar_changed(struct gui_wps *skin)
}
-#ifdef HAVE_LCD_BITMAP
-
static void draw_progressbar(struct gui_wps *gwps,
struct skin_viewport *wps_vp)
{
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index cfa857099e..1d97501bc1 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -89,8 +89,9 @@ static struct wps_data wps_datas[NB_SCREENS];
static void wps_state_init(void);
static void track_changed_callback(void *param);
static void nextid3available_callback(void* param);
+#ifdef HAVE_LCD_BITMAP
static void statusbar_toggle_handler(void *data);
-
+#endif
#define WPS_DEFAULTCFG WPS_DIR "/rockbox_default.wps"
#ifdef HAVE_REMOTE_LCD
@@ -693,6 +694,8 @@ long gui_wps_show(void)
#ifdef HAVE_LCD_CHARCELLS
status_set_audio(true);
status_set_param(false);
+#else
+ statusbar_toggle_handler(NULL);
#endif
#ifdef AB_REPEAT_ENABLE
@@ -700,7 +703,6 @@ long gui_wps_show(void)
ab_reset_markers();
#endif
wps_state_init();
- statusbar_toggle_handler(NULL);
while ( 1 )
{