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
This commit is contained in:
Daniel Stenberg 2005-07-14 10:35:26 +00:00
parent 9872813c7d
commit 1c47599312

View file

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