diff options
| author | Hardeep Sidhu <dyp@pobox.com> | 2003-08-06 16:16:21 +0000 |
|---|---|---|
| committer | Hardeep Sidhu <dyp@pobox.com> | 2003-08-06 16:16:21 +0000 |
| commit | 143da86b021242944c5d594a550dd91d757e1fa0 (patch) | |
| tree | 7b150e62d754527ce637112c64963edb9c227164 | |
| parent | 8abc9d471a66fcbb2e571b823580279e9a8f61ff (diff) | |
| download | rockbox-143da86b021242944c5d594a550dd91d757e1fa0.zip rockbox-143da86b021242944c5d594a550dd91d757e1fa0.tar.gz rockbox-143da86b021242944c5d594a550dd91d757e1fa0.tar.bz2 rockbox-143da86b021242944c5d594a550dd91d757e1fa0.tar.xz | |
Take statusbar into account when updating a line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3924 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/wps-display.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index d3c2613..2754dba 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c @@ -668,6 +668,7 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo bool update_line; #ifdef HAVE_LCD_BITMAP int h = font_get(FONT_UI)->height; + int offset = global_settings.statusbar ? STATUSBAR_HEIGHT : 0; /* to find out wether the peak meter is enabled we assume it wasn't until we find a line that contains the peak meter. We can't use peak_meter_enabled itself @@ -708,7 +709,6 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo #ifdef HAVE_LCD_BITMAP /* progress */ if (flags & refresh_mode & WPS_REFRESH_PLAYER_PROGRESS) { - int offset = global_settings.statusbar ? STATUSBAR_HEIGHT : 0; int percent= id3->length? (id3->elapsed + ff_rewind_count) * 100 / id3->length:0; @@ -719,7 +719,6 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) { /* peak meter */ int peak_meter_y; - int offset = global_settings.statusbar ? STATUSBAR_HEIGHT : 0; update_line = true; peak_meter_y = i * h + offset; @@ -763,7 +762,7 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo } #ifdef HAVE_LCD_BITMAP if (update_line) { - lcd_update_rect(0, i * h, LCD_WIDTH, h); + lcd_update_rect(0, i*h + offset, LCD_WIDTH, h); } #endif } |