From 3c9a109ec242ab58ebc9862b8af32fc9a83138d7 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 14 Dec 2002 00:09:47 +0000 Subject: [PATCH] Added recorded file size display git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2981 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/recording.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index e866a4fac6..3926382daa 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -39,6 +39,9 @@ #include "sound_menu.h" #include "timefuncs.h" #include "debug.h" +#include "string.h" + +extern char *num2max5(unsigned int bytes, char *max5); bool f2_rec_screen(void); bool f3_rec_screen(void); @@ -366,8 +369,9 @@ bool recording_screen(void) hours = seconds / 3600; minutes = (seconds - (hours * 3600)) / 60; - snprintf(buf, 32, "%02d:%02d:%02d", - hours, minutes, seconds%60); + snprintf(buf, 32, "%02d:%02d:%02d %s", + hours, minutes, seconds%60, + num2max5(mpeg_num_recorded_bytes(), buf2)); lcd_puts(0, 1, buf); peak_meter_draw(0, 8 + h*2, LCD_WIDTH, h);