forked from len0rd/rockbox
Mind the line-height
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6826 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
10426dbe22
commit
97a1cf80f7
1 changed files with 5 additions and 2 deletions
|
|
@ -227,7 +227,10 @@ bool dbg_audio_thread(void)
|
||||||
char buf[32];
|
char buf[32];
|
||||||
int button;
|
int button;
|
||||||
int line;
|
int line;
|
||||||
|
int center, height;
|
||||||
bool done = false;
|
bool done = false;
|
||||||
|
lcd_getstringsize(" ", ¢er, &height);
|
||||||
|
center = (height/2)-3;
|
||||||
|
|
||||||
ticks = boost_ticks = 0;
|
ticks = boost_ticks = 0;
|
||||||
|
|
||||||
|
|
@ -254,7 +257,7 @@ bool dbg_audio_thread(void)
|
||||||
lcd_puts(0, line++, buf);
|
lcd_puts(0, line++, buf);
|
||||||
|
|
||||||
/* Playable space left */
|
/* Playable space left */
|
||||||
scrollbar(0, line*8, LCD_WIDTH, 6, PCMBUF_SIZE, 0,
|
scrollbar(0, line*height + center, LCD_WIDTH, 6, PCMBUF_SIZE, 0,
|
||||||
PCMBUF_SIZE-audiobuffer_free, HORIZONTAL);
|
PCMBUF_SIZE-audiobuffer_free, HORIZONTAL);
|
||||||
line++;
|
line++;
|
||||||
|
|
||||||
|
|
@ -262,7 +265,7 @@ bool dbg_audio_thread(void)
|
||||||
lcd_puts(0, line++, buf);
|
lcd_puts(0, line++, buf);
|
||||||
|
|
||||||
/* Playable space left */
|
/* Playable space left */
|
||||||
scrollbar(0, line*8, LCD_WIDTH, 6, codecbuflen, 0,
|
scrollbar(0, line*height + center, LCD_WIDTH, 6, codecbuflen, 0,
|
||||||
codecbufused, HORIZONTAL);
|
codecbufused, HORIZONTAL);
|
||||||
line++;
|
line++;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue