diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ | |||
38 | #include "font.h" | 38 | #include "font.h" |
39 | #include "disk.h" | 39 | #include "disk.h" |
40 | #include "mpeg.h" | 40 | #include "mpeg.h" |
41 | #include "widgets.h" | ||
41 | 42 | ||
42 | /*---------------------------------------------------*/ | 43 | /*---------------------------------------------------*/ |
43 | /* SPECIAL DEBUG STUFF */ | 44 | /* SPECIAL DEBUG STUFF */ |
@@ -137,8 +138,11 @@ bool dbg_mpeg_thread(void) | |||
137 | { | 138 | { |
138 | char buf[32]; | 139 | char buf[32]; |
139 | int button; | 140 | int button; |
141 | int percent; | ||
140 | struct mpeg_debug d; | 142 | struct mpeg_debug d; |
141 | 143 | ||
144 | lcd_setmargins(0, 0); | ||
145 | |||
142 | while(1) | 146 | while(1) |
143 | { | 147 | { |
144 | button = button_get_w_tmo(HZ/5); | 148 | button = button_get_w_tmo(HZ/5); |
@@ -164,6 +168,15 @@ bool dbg_mpeg_thread(void) | |||
164 | lcd_puts(0, 4, buf); | 168 | lcd_puts(0, 4, buf); |
165 | snprintf(buf, sizeof(buf), "unswapped: %x", d.unswapped_space); | 169 | snprintf(buf, sizeof(buf), "unswapped: %x", d.unswapped_space); |
166 | lcd_puts(0, 5, buf); | 170 | lcd_puts(0, 5, buf); |
171 | |||
172 | percent = d.unplayed_space * 100 / d.mp3buflen; | ||
173 | progressbar(0, 6*8, 112, 4, percent, Grow_Right); | ||
174 | |||
175 | percent = MPEG_LOW_WATER * 100 / d.mp3buflen; | ||
176 | progressbar(0, 6*8+4, 112, 4, percent, Grow_Right); | ||
177 | |||
178 | snprintf(buf, sizeof(buf), "lowest: %x", d.lowest_watermark_level); | ||
179 | lcd_puts(0, 7, buf); | ||
167 | 180 | ||
168 | lcd_update(); | 181 | lcd_update(); |
169 | } | 182 | } |