1
0
Fork 0
forked from len0rd/rockbox

font_get() and lcd_update_rect() are bitmap functions

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2786 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-10-31 07:42:36 +00:00
parent ec72d5a58a
commit 0d0828b18e

View file

@ -524,9 +524,9 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
char buf[MAX_PATH]; char buf[MAX_PATH];
unsigned char flags; unsigned char flags;
int i; int i;
int h = font_get(FONT_UI)->height;
bool update_line; bool update_line;
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
int h = font_get(FONT_UI)->height;
/* to find out wether the peak meter is enabled we /* to find out wether the peak meter is enabled we
assume it wasn't until we find a line that contains assume it wasn't until we find a line that contains
the peak meter. We can't use peak_meter_enabled itself the peak meter. We can't use peak_meter_enabled itself
@ -610,9 +610,11 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
lcd_puts(0, i, buf); lcd_puts(0, i, buf);
} }
} }
#ifdef HAVE_LCD_BITMAP
if (update_line) { if (update_line) {
lcd_update_rect(0, i * h, LCD_WIDTH, h); lcd_update_rect(0, i * h, LCD_WIDTH, h);
} }
#endif
} }
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
/* Now we know wether the peak meter is used. /* 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; return true;
} }
#endif #endif
/* -----------------------------------------------------------------
* local variables:
* eval: (load-file "../firmware/rockbox-mode.el")
* end:
* vim: et sw=4 ts=8 sts=4 tw=78
*/