diff options
author | Mustapha Senhaji <moos@rockbox.org> | 2010-12-24 03:31:40 +0000 |
---|---|---|
committer | Mustapha Senhaji <moos@rockbox.org> | 2010-12-24 03:31:40 +0000 |
commit | 5e1e05f6162677caf408e5256f64d70ec4433433 (patch) | |
tree | 17715c232c9ffff3dc4dd7ca8004d3622a95d35f /apps/screens.c | |
parent | aac5916954bd5829dd6fe977488ae0642016caa8 (diff) |
Add "file size" to the track information screen of WPS.
Reuse "LANG_FILE_SIZE" from recording settings, with now a unified "LANG_FILESIZE" string.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28886 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screens.c')
-rw-r--r-- | apps/screens.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/screens.c b/apps/screens.c index c053a1756c..81472e6cc7 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -629,6 +629,7 @@ static const int id3_headers[]= LANG_ID3_TRACK_GAIN, LANG_ID3_ALBUM_GAIN, #endif + LANG_FILESIZE, LANG_ID3_PATH, }; @@ -739,6 +740,10 @@ static const char* id3_get_info(int selected_item, void* data, case LANG_ID3_COMPOSER: val=id3->composer; break; + case LANG_FILESIZE: /* not LANG_ID3_FILESIZE because the string is shared */ + output_dyn_value(buffer, buffer_len, id3->filesize, byte_units, true); + val=buffer; + break; } return val && *val ? val : NULL; } |