summaryrefslogtreecommitdiff
path: root/apps
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 /apps
parentec72d5a58ac25db983a0700d26a03fde52035a1c (diff)
font_get() and lcd_update_rect() are bitmap functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2786 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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
char buf[MAX_PATH];
unsigned char flags;
int i;
- int h = font_get(FONT_UI)->height;
bool update_line;
#ifdef HAVE_LCD_BITMAP
+ int h = font_get(FONT_UI)->height;
/* 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
@@ -598,8 +598,8 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
{
if (refresh_mode & WPS_REFRESH_SCROLL)
{
- lcd_puts_scroll(0, i, buf);
- }
+ lcd_puts_scroll(0, i, buf);
+ }
}
/* dynamic / static line */
@@ -610,9 +610,11 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
lcd_puts(0, i, buf);
}
}
+#ifdef HAVE_LCD_BITMAP
if (update_line) {
lcd_update_rect(0, i * h, LCD_WIDTH, h);
}
+#endif
}
#ifdef HAVE_LCD_BITMAP
/* Now we know wether the peak meter is used.
@@ -699,3 +701,10 @@ bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count)
return true;
}
#endif
+
+/* -----------------------------------------------------------------
+ * local variables:
+ * eval: (load-file "../firmware/rockbox-mode.el")
+ * end:
+ * vim: et sw=4 ts=8 sts=4 tw=78
+ */