1
0
Fork 0
forked from len0rd/rockbox

fix for another sim error

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3022 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Uwe Freese 2002-12-18 22:57:59 +00:00
parent 72f784e18a
commit 89a180674b

View file

@ -163,9 +163,12 @@ void statusbar_icon_battery(int percent, bool charging)
if (fill > 100)
fill = 100;
#ifdef SIMULATOR
if (global_settings.battery_type) {
#else
/* show graphical animation when charging instead of numbers */
if ((global_settings.battery_type) && (charge_state != 1)) {
#endif
/* Numeric display */
snprintf(buffer, sizeof(buffer), "%3d", percent);
lcd_setfont(FONT_SYSFIXED);