summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorUwe Freese <thebreaker@rockbox.org>2002-12-18 18:47:11 +0000
committerUwe Freese <thebreaker@rockbox.org>2002-12-18 18:47:11 +0000
commit012d1d5f903d5a4b090c3ce3d59bfba545a334c9 (patch)
treea32ab0b60c37c946c4d0d344638500e94572d20a /apps
parentc3fd67c6c90daf36349cf9bb1ebf6e8e640062a8 (diff)
downloadrockbox-012d1d5f903d5a4b090c3ce3d59bfba545a334c9.tar.gz
rockbox-012d1d5f903d5a4b090c3ce3d59bfba545a334c9.zip
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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c
index 5cca0ce8cc..0413792c53 100644
--- a/apps/recorder/icons.c
+++ b/apps/recorder/icons.c
@@ -22,6 +22,7 @@
22#include "kernel.h" 22#include "kernel.h"
23#include "sprintf.h" 23#include "sprintf.h"
24#include "rtc.h" 24#include "rtc.h"
25#include "powermgmt.h"
25 26
26#include "settings.h" 27#include "settings.h"
27 28
@@ -162,7 +163,8 @@ void statusbar_icon_battery(int percent, bool charging)
162 if (fill > 100) 163 if (fill > 100)
163 fill = 100; 164 fill = 100;
164 165
165 if (global_settings.battery_type) { 166 /* show graphical animation when charging instead of numbers */
167 if ((global_settings.battery_type) && (charge_state != 1)) {
166 168
167 /* Numeric display */ 169 /* Numeric display */
168 snprintf(buffer, sizeof(buffer), "%3d", percent); 170 snprintf(buffer, sizeof(buffer), "%3d", percent);