From 73e2f7bd6b576766a8a9565c439b0d6426e51f67 Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Thu, 12 Oct 2006 16:51:22 +0000 Subject: 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 --- apps/debug_menu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps/debug_menu.c') 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()); -- cgit v1.1