1
0
Fork 0
forked from len0rd/rockbox

lcd_puts() uses the new fontheight table now

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@361 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-05-01 09:59:15 +00:00
parent 0b81b35b7a
commit 2877995956

View file

@ -444,21 +444,12 @@ void lcd_clear_display (void)
void lcd_puts(int x, int y, char *str, int font)
{
int nx = fonts[font];
int ny, ch;
int ny = fontheight[font];
int ch;
unsigned char *src;
int lcd_x = x;
int lcd_y = y;
if (nx == 12)
ny = 16;
else if (nx == 8)
ny = 12;
else
{
nx = 6;
ny = 8;
}
while ((ch = *str++) != '\0')
{
if (ch == '\n' || lcd_x + nx > LCD_WIDTH)