diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 0b4be9d72d..e7c2923f55 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -151,7 +151,6 @@ bool dbg_mpeg_thread(void) | |||
151 | { | 151 | { |
152 | char buf[32]; | 152 | char buf[32]; |
153 | int button; | 153 | int button; |
154 | int percent; | ||
155 | struct mpeg_debug d; | 154 | struct mpeg_debug d; |
156 | 155 | ||
157 | lcd_setmargins(0, 0); | 156 | lcd_setmargins(0, 0); |
@@ -182,11 +181,13 @@ bool dbg_mpeg_thread(void) | |||
182 | snprintf(buf, sizeof(buf), "unswapped: %x", d.unswapped_space); | 181 | snprintf(buf, sizeof(buf), "unswapped: %x", d.unswapped_space); |
183 | lcd_puts(0, 5, buf); | 182 | lcd_puts(0, 5, buf); |
184 | 183 | ||
185 | percent = d.playable_space * 100 / d.mp3buflen; | 184 | /* Playable space left */ |
186 | progressbar(0, 6*8, 112, 4, percent, Grow_Right); | 185 | scrollbar(0, 6*8, 112, 4, d.mp3buflen, 0, |
186 | d.playable_space, HORIZONTAL); | ||
187 | 187 | ||
188 | percent = d.low_watermark_level * 100 / d.mp3buflen; | 188 | /* Show the watermark limit */ |
189 | progressbar(0, 6*8+4, 112, 4, percent, Grow_Right); | 189 | scrollbar(0, 6*8+4, 112, 4, d.mp3buflen, 0, |
190 | d.low_watermark_level, HORIZONTAL); | ||
190 | 191 | ||
191 | snprintf(buf, sizeof(buf), "wm: %x - %x", | 192 | snprintf(buf, sizeof(buf), "wm: %x - %x", |
192 | d.low_watermark_level, d.lowest_watermark_level); | 193 | d.low_watermark_level, d.lowest_watermark_level); |