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:
parent
0b81b35b7a
commit
2877995956
1 changed files with 2 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue