diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-06-24 22:33:21 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-24 22:33:21 +0000 |
| commit | 04daef17a1d180c68888c29d11a1b9087e9ace32 (patch) | |
| tree | f2d794c196981fc605880e3bbb4447edbaba5f50 /apps/debug_menu.c | |
| parent | 0e935bdf01aff1e3bc66221c9a0fcc80f935c3d6 (diff) | |
| download | rockbox-04daef17a1d180c68888c29d11a1b9087e9ace32.zip rockbox-04daef17a1d180c68888c29d11a1b9087e9ace32.tar.gz rockbox-04daef17a1d180c68888c29d11a1b9087e9ace32.tar.bz2 rockbox-04daef17a1d180c68888c29d11a1b9087e9ace32.tar.xz | |
First part of graphics api rework. Special functions, parameter handling, pixel functions, lines and filled primitives done for black & white core, main display.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6856 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 588daec..a1097ba 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -264,7 +264,7 @@ bool dbg_audio_thread(void) lcd_puts(0, line++, buf); /* Playable space left */ - scrollbar(0, line*8, LCD_WIDTH, 6, codecbuflen, 0, + scrollbar(0, line*8, LCD_WIDTH, 6, codecbuflen, 0, codecbufused, HORIZONTAL); line++; @@ -1142,8 +1142,10 @@ bool view_battery(void) x = 0; for (i = BAT_LAST_VAL - 1; i >= 0; i--) { y = (power_history[i] - minv) * BAT_YSPACE / (maxv - minv); - lcd_clearline(x, LCD_HEIGHT-1, x, 20); - lcd_drawline(x, LCD_HEIGHT-1, x, + lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); + lcd_drawline(x, LCD_HEIGHT-1, x, 20); + lcd_set_drawmode(DRMODE_SOLID); + lcd_drawline(x, LCD_HEIGHT-1, x, MIN(MAX(LCD_HEIGHT-1 - y, 20), LCD_HEIGHT-1)); x++; } |