diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-07-14 10:35:26 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-07-14 10:35:26 +0000 |
commit | 1c47599312180d4718a9fa1f34956b895986ed3d (patch) | |
tree | 121275b66a678ae6ae812c4deed02c067929522d /uisimulator | |
parent | 9872813c7d5025e72941719ef9252b1fa4ae41c6 (diff) | |
download | rockbox-1c47599312180d4718a9fa1f34956b895986ed3d.tar.gz rockbox-1c47599312180d4718a9fa1f34956b895986ed3d.zip |
brought back drawdots() and drawrectangles() since the player sim needs them
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7138 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/x11/uibasic.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/uisimulator/x11/uibasic.c b/uisimulator/x11/uibasic.c index 05eb3fff82..2228e3b038 100644 --- a/uisimulator/x11/uibasic.c +++ b/uisimulator/x11/uibasic.c @@ -214,6 +214,39 @@ void screenhack() app_main(); } +/* used for the player sim */ +void drawdots(int color, struct coordinate *points, int count) +{ + XtAppLock(app); + XSetForeground(dpy, draw_gc, getcolor[color==0?0:3].pixel); + + while (count--) { + XFillRectangle(dpy, window, draw_gc, + points[count].x*display_zoom, + points[count].y*display_zoom, + display_zoom, + display_zoom); + } + XtAppUnlock(app); +} + +/* used for the player sim */ +void drawrectangles(int color, struct rectangle *points, int count) +{ + XtAppLock(app); + + XSetForeground(dpy, draw_gc, getcolor[color==0?0:3].pixel); + while (count--) { + XFillRectangle(dpy, window, draw_gc, + points[count].x*display_zoom, + points[count].y*display_zoom, + points[count].width*display_zoom, + points[count].height*display_zoom); + } + XtAppUnlock(app); +} + + void screen_redraw() { /* draw a border around the screen */ |