From bf303de4ddda21248a9b77a6d6b2e8bb4631cace Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 15 Oct 2002 07:23:18 +0000 Subject: More debug info git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2632 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 9f71d14156..af8853d93c 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -38,6 +38,7 @@ #include "font.h" #include "disk.h" #include "mpeg.h" +#include "widgets.h" /*---------------------------------------------------*/ /* SPECIAL DEBUG STUFF */ @@ -137,8 +138,11 @@ bool dbg_mpeg_thread(void) { char buf[32]; int button; + int percent; struct mpeg_debug d; + lcd_setmargins(0, 0); + while(1) { button = button_get_w_tmo(HZ/5); @@ -164,6 +168,15 @@ bool dbg_mpeg_thread(void) lcd_puts(0, 4, buf); snprintf(buf, sizeof(buf), "unswapped: %x", d.unswapped_space); lcd_puts(0, 5, buf); + + percent = d.unplayed_space * 100 / d.mp3buflen; + progressbar(0, 6*8, 112, 4, percent, Grow_Right); + + percent = MPEG_LOW_WATER * 100 / d.mp3buflen; + progressbar(0, 6*8+4, 112, 4, percent, Grow_Right); + + snprintf(buf, sizeof(buf), "lowest: %x", d.lowest_watermark_level); + lcd_puts(0, 7, buf); lcd_update(); } -- cgit v1.2.3