summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-31 07:42:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-31 07:42:36 +0000
commit0d0828b18e6c2aacaeb82f4f467c728813a76742 (patch)
tree961b48b14a908f13c421313bc5ac30d3314eec45
parentec72d5a58ac25db983a0700d26a03fde52035a1c (diff)
downloadrockbox-0d0828b18e6c2aacaeb82f4f467c728813a76742.tar.gz
rockbox-0d0828b18e6c2aacaeb82f4f467c728813a76742.zip
font_get() and lcd_update_rect() are bitmap functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2786 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps-display.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index cfc968a3ec..c5525a73b5 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -524,9 +524,9 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
524 char buf[MAX_PATH]; 524 char buf[MAX_PATH];
525 unsigned char flags; 525 unsigned char flags;
526 int i; 526 int i;
527 int h = font_get(FONT_UI)->height;
528 bool update_line; 527 bool update_line;
529#ifdef HAVE_LCD_BITMAP 528#ifdef HAVE_LCD_BITMAP
529 int h = font_get(FONT_UI)->height;
530 /* to find out wether the peak meter is enabled we 530 /* to find out wether the peak meter is enabled we
531 assume it wasn't until we find a line that contains 531 assume it wasn't until we find a line that contains
532 the peak meter. We can't use peak_meter_enabled itself 532 the peak meter. We can't use peak_meter_enabled itself
@@ -598,8 +598,8 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
598 { 598 {
599 if (refresh_mode & WPS_REFRESH_SCROLL) 599 if (refresh_mode & WPS_REFRESH_SCROLL)
600 { 600 {
601 lcd_puts_scroll(0, i, buf); 601 lcd_puts_scroll(0, i, buf);
602 } 602 }
603 } 603 }
604 604
605 /* dynamic / static line */ 605 /* dynamic / static line */
@@ -610,9 +610,11 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
610 lcd_puts(0, i, buf); 610 lcd_puts(0, i, buf);
611 } 611 }
612 } 612 }
613#ifdef HAVE_LCD_BITMAP
613 if (update_line) { 614 if (update_line) {
614 lcd_update_rect(0, i * h, LCD_WIDTH, h); 615 lcd_update_rect(0, i * h, LCD_WIDTH, h);
615 } 616 }
617#endif
616 } 618 }
617#ifdef HAVE_LCD_BITMAP 619#ifdef HAVE_LCD_BITMAP
618 /* Now we know wether the peak meter is used. 620 /* Now we know wether the peak meter is used.
@@ -699,3 +701,10 @@ bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count)
699 return true; 701 return true;
700} 702}
701#endif 703#endif
704
705/* -----------------------------------------------------------------
706 * local variables:
707 * eval: (load-file "../firmware/rockbox-mode.el")
708 * end:
709 * vim: et sw=4 ts=8 sts=4 tw=78
710 */