diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-01-31 01:27:48 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-01-31 01:27:48 +0000 |
| commit | f098b15c79f70b05402d6fee366a7482f11af49d (patch) | |
| tree | 3f4dc8c3504164d440d206bc09505cf88e39d331 /apps | |
| parent | 70c108c41f8b0046e5449922c21b8df5c104e2e2 (diff) | |
| download | rockbox-f098b15c79f70b05402d6fee366a7482f11af49d.zip rockbox-f098b15c79f70b05402d6fee366a7482f11af49d.tar.gz rockbox-f098b15c79f70b05402d6fee366a7482f11af49d.tar.bz2 rockbox-f098b15c79f70b05402d6fee366a7482f11af49d.tar.xz | |
Made total/free disk space info fit on the player lcd.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5724 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/main_menu.c | 8 | ||||
| -rw-r--r-- | apps/misc.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c index 21e8c09..ea66286 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -222,11 +222,19 @@ bool show_info(void) if (state & 2) { output_dyn_value(s2, sizeof s2, size, kbyte_units, true); +#ifdef HAVE_LCD_CHARCELLS + snprintf(s, sizeof s, "%s%s", str(LANG_DISK_SIZE_INFO), s2); +#else snprintf(s, sizeof s, "%s %s", str(LANG_DISK_SIZE_INFO), s2); +#endif lcd_puts(0, y++, s); output_dyn_value(s2, sizeof s2, free, kbyte_units, true); +#ifdef HAVE_LCD_CHARCELLS + snprintf(s, sizeof s, "%s%s", str(LANG_DISK_FREE_INFO), s2); +#else snprintf(s, sizeof s, "%s %s", str(LANG_DISK_FREE_INFO), s2); +#endif lcd_puts(0, y++, s); } lcd_update(); diff --git a/apps/misc.c b/apps/misc.c index 803966c..0c12440 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -77,7 +77,7 @@ char *output_dyn_value(char *buf, int buf_size, int value, snprintf(tbuf, sizeof(tbuf), "%d%s%02d", value, str(LANG_POINT), fraction / 10); - snprintf(buf, buf_size, "%s %s", tbuf, P2STR(units[unit_no])); + snprintf(buf, buf_size, "%s%s", tbuf, P2STR(units[unit_no])); } else { |