diff options
| author | Uwe Freese <thebreaker@rockbox.org> | 2002-12-18 18:47:11 +0000 |
|---|---|---|
| committer | Uwe Freese <thebreaker@rockbox.org> | 2002-12-18 18:47:11 +0000 |
| commit | 012d1d5f903d5a4b090c3ce3d59bfba545a334c9 (patch) | |
| tree | a32ab0b60c37c946c4d0d344638500e94572d20a /apps | |
| parent | c3fd67c6c90daf36349cf9bb1ebf6e8e640062a8 (diff) | |
| download | rockbox-012d1d5f903d5a4b090c3ce3d59bfba545a334c9.zip rockbox-012d1d5f903d5a4b090c3ce3d59bfba545a334c9.tar.gz rockbox-012d1d5f903d5a4b090c3ce3d59bfba545a334c9.tar.bz2 rockbox-012d1d5f903d5a4b090c3ce3d59bfba545a334c9.tar.xz | |
display graphic batt. animation instead of numerical 0,34,68,100 when charging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3016 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/recorder/icons.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c index 5cca0ce..0413792 100644 --- a/apps/recorder/icons.c +++ b/apps/recorder/icons.c @@ -22,6 +22,7 @@ #include "kernel.h" #include "sprintf.h" #include "rtc.h" +#include "powermgmt.h" #include "settings.h" @@ -162,7 +163,8 @@ void statusbar_icon_battery(int percent, bool charging) if (fill > 100) fill = 100; - if (global_settings.battery_type) { + /* show graphical animation when charging instead of numbers */ + if ((global_settings.battery_type) && (charge_state != 1)) { /* Numeric display */ snprintf(buffer, sizeof(buffer), "%3d", percent); |