diff options
author | Björn Stenberg <bjorn@haxx.se> | 2003-10-17 13:54:48 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2003-10-17 13:54:48 +0000 |
commit | fb067481a8d2ec5c890fab5860ab246d019eecc9 (patch) | |
tree | 9f5c0d8d3f808cc662abc1be3386e9c783027366 /apps/status.c | |
parent | 2ec8e7d72b6e18cc79cea080b564df5fd1d50f3f (diff) | |
download | rockbox-fb067481a8d2ec5c890fab5860ab246d019eecc9.tar.gz rockbox-fb067481a8d2ec5c890fab5860ab246d019eecc9.zip |
Runtime display bug fix by Craig Sather (patch #766552)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3974 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/status.c')
-rw-r--r-- | apps/status.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/status.c b/apps/status.c index 7217568f60..6f412d81b1 100644 --- a/apps/status.c +++ b/apps/status.c @@ -137,12 +137,16 @@ void status_draw(bool force_redraw) plug_state = true; #ifdef HAVE_CHARGE_CTRL /* zero battery run time if charging */ - if (charge_state > 0) + if (charge_state > 0) { global_settings.runtime = 0; + lasttime = current_tick; + } /* animate battery if charging */ if (charge_state == 1) { #else + global_settings.runtime = 0; + lasttime = current_tick; { #endif /* animate in three steps (34% per step for a better look) */ |