summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorUwe Freese <thebreaker@rockbox.org>2002-12-14 15:46:23 +0000
committerUwe Freese <thebreaker@rockbox.org>2002-12-14 15:46:23 +0000
commit34299df8c84b8c6f58e3f7c2b9b5057ffc6e56dd (patch)
treee448ac7b0c81e9c93e9c9c1a6b5d64d94ec023f3 /apps
parentdb5bcc6df7bedbf341826b873e80797b4d11a97c (diff)
downloadrockbox-34299df8c84b8c6f58e3f7c2b9b5057ffc6e56dd.tar.gz
rockbox-34299df8c84b8c6f58e3f7c2b9b5057ffc6e56dd.zip
status bar: battery symbol animation in charge and top off charge mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2989 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/status.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/status.c b/apps/status.c
index 8e4a2c9b08..20e672d8dc 100644
--- a/apps/status.c
+++ b/apps/status.c
@@ -202,8 +202,9 @@ void status_draw(void)
202 if(charger_inserted()) { 202 if(charger_inserted()) {
203 battery_state = true; 203 battery_state = true;
204 plug_state = true; 204 plug_state = true;
205 if(charger_enabled) { /* animate battery if charging */ 205 if (charge_state > 0) /* charge || top off || trickle */
206 global_settings.runtime = 0; 206 global_settings.runtime = 0;
207 if ((charge_state == 1) || (charge_state == 2 )) { /* animate battery if charging or top-off charging*/
207 battlevel = battery_charge_step * 34; /* 34 for a better look */ 208 battlevel = battery_charge_step * 34; /* 34 for a better look */
208 battlevel = battlevel > 100 ? 100 : battlevel; 209 battlevel = battlevel > 100 ? 100 : battlevel;
209 if(TIME_AFTER(current_tick, switch_tick)) { 210 if(TIME_AFTER(current_tick, switch_tick)) {