summaryrefslogtreecommitdiffstats
path: root/uisimulator/x11/lcd-x11.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-04 12:25:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-04 12:25:06 +0000
commitd3cf73e6f58f56d8c066bc0a4eaa93cd75d4119c (patch)
tree917b39e501ccbfb0aa92955d545dfb10d83790cf /uisimulator/x11/lcd-x11.c
parent837e2c475f22e4f9ff05029c362bb45dff4d14b7 (diff)
downloadrockbox-d3cf73e6f58f56d8c066bc0a4eaa93cd75d4119c.tar.gz
rockbox-d3cf73e6f58f56d8c066bc0a4eaa93cd75d4119c.zip
started to implement the charcell LCD api
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@422 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/lcd-x11.c')
-rw-r--r--uisimulator/x11/lcd-x11.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/uisimulator/x11/lcd-x11.c b/uisimulator/x11/lcd-x11.c
index d60e2ce0ee..4d2eb4be54 100644
--- a/uisimulator/x11/lcd-x11.c
+++ b/uisimulator/x11/lcd-x11.c
@@ -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