diff options
| author | Tomas Salfischberger <tomas@rockbox.org> | 2005-07-06 19:33:46 +0000 |
|---|---|---|
| committer | Tomas Salfischberger <tomas@rockbox.org> | 2005-07-06 19:33:46 +0000 |
| commit | d3424f0f51f564c6408b7d27fe3bc89fbfaba87d (patch) | |
| tree | 6279ba532339d0f91583ec3dea7a74a17a7392e0 /apps | |
| parent | 6b582c3b922593cf68af19e5518cb6e74f95b430 (diff) | |
| download | rockbox-d3424f0f51f564c6408b7d27fe3bc89fbfaba87d.zip rockbox-d3424f0f51f564c6408b7d27fe3bc89fbfaba87d.tar.gz rockbox-d3424f0f51f564c6408b7d27fe3bc89fbfaba87d.tar.bz2 rockbox-d3424f0f51f564c6408b7d27fe3bc89fbfaba87d.tar.xz | |
Fixed the "overwriting bug" with aligned lines in the WPS.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7042 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/wps-display.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index ab62a91..8c6de43 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c @@ -1138,6 +1138,11 @@ bool wps_refresh(struct mp3entry* id3, if (strw>LCD_WIDTH) { lcd_puts_scroll(0, i, buf); } else { + /* clear the line first */ + lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); + lcd_fillrect(0, ypos, LCD_WIDTH, strh); + lcd_set_drawmode(DRMODE_SOLID); + if (flags & WPS_ALIGN_CENTER) { xpos = (LCD_WIDTH - strw) / 2; @@ -1168,6 +1173,12 @@ bool wps_refresh(struct mp3entry* id3, lcd_getstringsize(buf, &strw, &strh); ypos = (i*strh)+lcd_getymargin(); update_line = true; + + /* clear the line first */ + lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); + lcd_fillrect(0, ypos, LCD_WIDTH, strh); + lcd_set_drawmode(DRMODE_SOLID); + if (flags & WPS_ALIGN_CENTER) { xpos = (LCD_WIDTH - strw) / 2; lcd_putsxy(xpos, ypos, buf); |