summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-01-31 01:27:48 +0000
committerJens Arnold <amiconn@rockbox.org>2005-01-31 01:27:48 +0000
commitf098b15c79f70b05402d6fee366a7482f11af49d (patch)
tree3f4dc8c3504164d440d206bc09505cf88e39d331 /apps
parent70c108c41f8b0046e5449922c21b8df5c104e2e2 (diff)
downloadrockbox-f098b15c79f70b05402d6fee366a7482f11af49d.tar.gz
rockbox-f098b15c79f70b05402d6fee366a7482f11af49d.zip
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.c8
-rw-r--r--apps/misc.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c
index 21e8c091b6..ea66286e82 100644
--- a/apps/main_menu.c
+++ b/apps/main_menu.c
@@ -222,11 +222,19 @@ bool show_info(void)
222 222
223 if (state & 2) { 223 if (state & 2) {
224 output_dyn_value(s2, sizeof s2, size, kbyte_units, true); 224 output_dyn_value(s2, sizeof s2, size, kbyte_units, true);
225#ifdef HAVE_LCD_CHARCELLS
226 snprintf(s, sizeof s, "%s%s", str(LANG_DISK_SIZE_INFO), s2);
227#else
225 snprintf(s, sizeof s, "%s %s", str(LANG_DISK_SIZE_INFO), s2); 228 snprintf(s, sizeof s, "%s %s", str(LANG_DISK_SIZE_INFO), s2);
229#endif
226 lcd_puts(0, y++, s); 230 lcd_puts(0, y++, s);
227 231
228 output_dyn_value(s2, sizeof s2, free, kbyte_units, true); 232 output_dyn_value(s2, sizeof s2, free, kbyte_units, true);
233#ifdef HAVE_LCD_CHARCELLS
234 snprintf(s, sizeof s, "%s%s", str(LANG_DISK_FREE_INFO), s2);
235#else
229 snprintf(s, sizeof s, "%s %s", str(LANG_DISK_FREE_INFO), s2); 236 snprintf(s, sizeof s, "%s %s", str(LANG_DISK_FREE_INFO), s2);
237#endif
230 lcd_puts(0, y++, s); 238 lcd_puts(0, y++, s);
231 } 239 }
232 lcd_update(); 240 lcd_update();
diff --git a/apps/misc.c b/apps/misc.c
index 803966c647..0c1244017d 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -77,7 +77,7 @@ char *output_dyn_value(char *buf, int buf_size, int value,
77 snprintf(tbuf, sizeof(tbuf), "%d%s%02d", value, str(LANG_POINT), 77 snprintf(tbuf, sizeof(tbuf), "%d%s%02d", value, str(LANG_POINT),
78 fraction / 10); 78 fraction / 10);
79 79
80 snprintf(buf, buf_size, "%s %s", tbuf, P2STR(units[unit_no])); 80 snprintf(buf, buf_size, "%s%s", tbuf, P2STR(units[unit_no]));
81 } 81 }
82 else 82 else
83 { 83 {