diff options
| author | Steve Bavin <pondlife@pondlife.me> | 2006-10-12 16:51:22 +0000 |
|---|---|---|
| committer | Steve Bavin <pondlife@pondlife.me> | 2006-10-12 16:51:22 +0000 |
| commit | 73e2f7bd6b576766a8a9565c439b0d6426e51f67 (patch) | |
| tree | 49e4990af16cd39b3209187bfa05b6481754cb2a /apps/debug_menu.c | |
| parent | 5f70ad4cb0ff6f782b3a6e7d6963b1d124210329 (diff) | |
| download | rockbox-73e2f7bd6b576766a8a9565c439b0d6426e51f67.zip rockbox-73e2f7bd6b576766a8a9565c439b0d6426e51f67.tar.gz rockbox-73e2f7bd6b576766a8a9565c439b0d6426e51f67.tar.bz2 rockbox-73e2f7bd6b576766a8a9565c439b0d6426e51f67.tar.xz | |
Minor simplification #2; replace unneeded variable filebufused with a macro
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11201 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index fa65073..9b04cfa 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -270,7 +270,6 @@ bool dbg_audio_thread(void) #else /* CONFIG_CODEC == SWCODEC */ extern size_t filebuflen; /* This is a size_t, but call it a long so it puts a - when it's bad. */ -extern long filebufused; static unsigned int ticks, boost_ticks; @@ -329,12 +328,12 @@ bool dbg_audio_thread(void) scrollbar(0, line*8, LCD_WIDTH, 6, bufsize, 0, bufused, HORIZONTAL); line++; - snprintf(buf, sizeof(buf), "codec: %8ld/%8ld", filebufused, (long) filebuflen); + snprintf(buf, sizeof(buf), "codec: %8ld/%8ld", audio_filebufused(), (long) filebuflen); lcd_puts(0, line++, buf); /* Playable space left */ scrollbar(0, line*8, LCD_WIDTH, 6, filebuflen, 0, - filebufused, HORIZONTAL); + audio_filebufused(), HORIZONTAL); line++; snprintf(buf, sizeof(buf), "track count: %2d", audio_track_count()); |