diff options
Diffstat (limited to 'uisimulator/uibasic.c')
-rw-r--r-- | uisimulator/uibasic.c | 14 |
1 files changed, 10 insertions, 4 deletions
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) | |||
177 | XDrawPoint(dpy, window, draw_gc, x, y); | 177 | XDrawPoint(dpy, window, draw_gc, x, y); |
178 | } | 178 | } |
179 | 179 | ||
180 | void drawdots(XPoint *points, int count) | 180 | void drawdots(int color, XPoint *points, int count) |
181 | { | 181 | { |
182 | XSetForeground(dpy, draw_gc, | 182 | if (color==0) { |
183 | get_pixel_resource("foreground", "Foreground", dpy, cmap)); | 183 | XSetForeground(dpy, draw_gc, |
184 | get_pixel_resource("background", "Background", dpy, cmap)); | ||
185 | } | ||
186 | else | ||
187 | XSetForeground(dpy, draw_gc, | ||
188 | get_pixel_resource("foreground", "Foreground", dpy, cmap)); | ||
189 | |||
184 | 190 | ||
185 | XDrawPoints(dpy, window, draw_gc, points, count, CoordModeOrigin); | 191 | XDrawPoints(dpy, window, draw_gc, points, count, CoordModeOrigin); |
186 | } | 192 | } |
@@ -223,7 +229,7 @@ screenhack (Display *the_dpy, Window the_window) | |||
223 | 229 | ||
224 | Logf("Rockbox will kill ya!"); | 230 | Logf("Rockbox will kill ya!"); |
225 | 231 | ||
226 | tetris(); | 232 | app_main(); |
227 | } | 233 | } |
228 | 234 | ||
229 | void screen_redraw() | 235 | void screen_redraw() |