1
0
Fork 0
forked from len0rd/rockbox

show the skin buffer size as well as the used amount in the rockbox info screen

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22419 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2009-08-19 04:41:30 +00:00
parent 98756fe492
commit 061b7ebcc8

View file

@ -169,9 +169,7 @@ static char* info_getname(int selected_item, void *data,
{ {
struct info_data *info = (struct info_data*)data; struct info_data *info = (struct info_data*)data;
char s1[32]; char s1[32];
#ifdef HAVE_MULTIVOLUME
char s2[32]; char s2[32];
#endif
if (info->new_data) if (info->new_data)
{ {
fat_size(IF_MV2(0,) &info->size, &info->free); fat_size(IF_MV2(0,) &info->size, &info->free);
@ -258,7 +256,9 @@ static char* info_getname(int selected_item, void *data,
break; break;
case INFO_SKIN_USAGE: case INFO_SKIN_USAGE:
output_dyn_value(s1, sizeof s1, skin_buffer_usage(), byte_units, true); output_dyn_value(s1, sizeof s1, skin_buffer_usage(), byte_units, true);
snprintf(buffer, buffer_len, "%s %s", str(LANG_SKIN_RAM_USAGE), s1); output_dyn_value(s2, sizeof s2, skin_buffer_usage()
+skin_buffer_freespace(), byte_units, true);
snprintf(buffer, buffer_len, "%s %s / %s", str(LANG_SKIN_RAM_USAGE), s1, s2);
break; break;
} }
return buffer; return buffer;