From 012d1d5f903d5a4b090c3ce3d59bfba545a334c9 Mon Sep 17 00:00:00 2001 From: Uwe Freese Date: Wed, 18 Dec 2002 18:47:11 +0000 Subject: 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 --- apps/recorder/icons.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/recorder/icons.c') 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 @@ #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); -- cgit v1.2.3