forked from len0rd/rockbox
started to implement the charcell LCD api
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@422 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
837e2c475f
commit
d3cf73e6f5
1 changed files with 17 additions and 0 deletions
|
@ -106,3 +106,20 @@ void lcd_update (void)
|
|||
/* Logf("lcd_update: Draws %d pixels, clears %d pixels", p, cp);*/
|
||||
XSync(dpy,False);
|
||||
}
|
||||
|
||||
#ifdef HAVE_LCD_CHARCELLS
|
||||
/* simulation layer for charcells */
|
||||
void lcd_clear_display(void)
|
||||
{
|
||||
sim_lcd_clear_display();
|
||||
}
|
||||
|
||||
void lcd_puts(int x, int y, char *string)
|
||||
{
|
||||
char buffer[12];
|
||||
strncpy(buffer, string, 11);
|
||||
buffer[11]=0;
|
||||
|
||||
sim_lcd_puts(x*6, y*8, buffer, 0);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue