forked from len0rd/rockbox
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
This commit is contained in:
parent
70c108c41f
commit
f098b15c79
2 changed files with 9 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue