From c1543511b342162b2b537485c6646186037d8845 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 27 Apr 2002 23:41:41 +0000 Subject: runs the app now, improved the lcd simulation a bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@281 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/uibasic.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'uisimulator/uibasic.c') diff --git a/uisimulator/uibasic.c b/uisimulator/uibasic.c index f1bb42f202..85cfb7d911 100644 --- a/uisimulator/uibasic.c +++ b/uisimulator/uibasic.c @@ -177,10 +177,16 @@ void drawdot(int color, int x, int y) XDrawPoint(dpy, window, draw_gc, x, y); } -void drawdots(XPoint *points, int count) +void drawdots(int color, XPoint *points, int count) { - XSetForeground(dpy, draw_gc, - get_pixel_resource("foreground", "Foreground", dpy, cmap)); + if (color==0) { + XSetForeground(dpy, draw_gc, + get_pixel_resource("background", "Background", dpy, cmap)); + } + else + XSetForeground(dpy, draw_gc, + get_pixel_resource("foreground", "Foreground", dpy, cmap)); + XDrawPoints(dpy, window, draw_gc, points, count, CoordModeOrigin); } @@ -223,7 +229,7 @@ screenhack (Display *the_dpy, Window the_window) Logf("Rockbox will kill ya!"); - tetris(); + app_main(); } void screen_redraw() -- cgit v1.2.3