diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-02-18 05:07:19 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-02-18 05:07:19 +0000 |
| commit | bd47d48c21ddcdd56b3654db78613d93739b8ce7 (patch) | |
| tree | 78ddd13c384995b4220adc2c85eff233956420d2 /apps/gui/statusbar.c | |
| parent | ac61951452e001da48430d8487521ad32b7a123c (diff) | |
| download | rockbox-bd47d48c21ddcdd56b3654db78613d93739b8ce7.zip rockbox-bd47d48c21ddcdd56b3654db78613d93739b8ce7.tar.gz rockbox-bd47d48c21ddcdd56b3654db78613d93739b8ce7.tar.bz2 rockbox-bd47d48c21ddcdd56b3654db78613d93739b8ce7.tar.xz | |
Do the CONFIG_LED define
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12383 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar.c')
| -rw-r--r-- | apps/gui/statusbar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index 805b6a0..f1bd58d 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c @@ -116,7 +116,7 @@ 7*ICONS_SPACING #define STATUSBAR_LOCKR_WIDTH 5 -#if (defined(CONFIG_LED) && (CONFIG_LED == LED_VIRTUAL)) || defined(HAVE_REMOTE_LCD) +#if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD) #define STATUSBAR_DISK_WIDTH 12 #define STATUSBAR_DISK_X_POS(statusbar_width) statusbar_width - \ STATUSBAR_DISK_WIDTH @@ -208,7 +208,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) bar->info.repeat = global_settings.repeat_mode; bar->info.playmode = current_playmode(); -#if (defined(CONFIG_LED) && (CONFIG_LED == LED_VIRTUAL)) || defined(HAVE_REMOTE_LCD) +#if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD) if(!display->has_disk_led) bar->info.led = led_read(HZ/2); /* delay should match polling interval */ #endif @@ -300,7 +300,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) #ifdef CONFIG_RTC gui_statusbar_time(display, bar->info.hour, bar->info.minute); #endif /* CONFIG_RTC */ -#if (defined(CONFIG_LED) && (CONFIG_LED == LED_VIRTUAL)) || defined(HAVE_REMOTE_LCD) +#if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD) if(!display->has_disk_led && bar->info.led) gui_statusbar_led(display); #endif @@ -541,7 +541,7 @@ void gui_statusbar_icon_lock_remote(struct screen * display) } #endif -#if (defined(CONFIG_LED) && (CONFIG_LED == LED_VIRTUAL)) || defined(HAVE_REMOTE_LCD) +#if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD) /* * no real LED: disk activity in status bar */ |