diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-02-18 05:32:06 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-02-18 05:32:06 +0000 |
commit | 9a6f419775270340ee154c55dbe52e99682fb77a (patch) | |
tree | 188fa4854d2ac5529f701de1bbba29a3241495bc /apps/gui/statusbar.c | |
parent | bd47d48c21ddcdd56b3654db78613d93739b8ce7 (diff) | |
download | rockbox-9a6f419775270340ee154c55dbe52e99682fb77a.tar.gz rockbox-9a6f419775270340ee154c55dbe52e99682fb77a.zip |
CONFIG_CHARGING
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12384 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar.c')
-rw-r--r-- | apps/gui/statusbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index f1bd58d70f..0086abb484 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c | |||
@@ -146,7 +146,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) | |||
146 | #ifdef HAVE_USB_POWER | 146 | #ifdef HAVE_USB_POWER |
147 | bar->info.usb_inserted = usb_inserted(); | 147 | bar->info.usb_inserted = usb_inserted(); |
148 | #endif | 148 | #endif |
149 | #ifdef CONFIG_CHARGING | 149 | #if CONFIG_CHARGING |
150 | bar->info.inserted = (charger_input_state == CHARGER); | 150 | bar->info.inserted = (charger_input_state == CHARGER); |
151 | if (bar->info.inserted) | 151 | if (bar->info.inserted) |
152 | { | 152 | { |
@@ -245,7 +245,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) | |||
245 | STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH, | 245 | STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH, |
246 | STATUSBAR_HEIGHT); | 246 | STATUSBAR_HEIGHT); |
247 | #endif /* HAVE_USB_POWER */ | 247 | #endif /* HAVE_USB_POWER */ |
248 | #ifdef CONFIG_CHARGING | 248 | #if CONFIG_CHARGING |
249 | #ifdef HAVE_USB_POWER | 249 | #ifdef HAVE_USB_POWER |
250 | else | 250 | else |
251 | #endif | 251 | #endif |
@@ -358,7 +358,7 @@ void gui_statusbar_icon_battery(struct screen * display, int percent, | |||
358 | unsigned int prevfg = 0; | 358 | unsigned int prevfg = 0; |
359 | #endif | 359 | #endif |
360 | 360 | ||
361 | #ifdef CONFIG_CHARGING | 361 | #if CONFIG_CHARGING |
362 | if (batt_charge_step >= 0) | 362 | if (batt_charge_step >= 0) |
363 | { | 363 | { |
364 | fill = percent * (STATUSBAR_BATTERY_WIDTH-3) / 100; | 364 | fill = percent * (STATUSBAR_BATTERY_WIDTH-3) / 100; |