1
0
Fork 0
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:
Daniel Stenberg 2002-05-04 12:25:06 +00:00
parent 837e2c475f
commit d3cf73e6f5

View file

@ -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