X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/3161048dbbffb3b02b124bac3bec03b1a4f22340..4189cd756f42c72355411aba9c66c8bd1a517c79:/gtk.c diff --git a/gtk.c b/gtk.c index e3bffa5..2cbbde4 100644 --- a/gtk.c +++ b/gtk.c @@ -334,6 +334,15 @@ void draw_polygon(frontend *fe, int *coords, int npoints, sfree(points); } +void draw_circle(frontend *fe, int cx, int cy, int radius, + int fill, int colour) +{ + gdk_gc_set_foreground(fe->gc, &fe->colours[colour]); + gdk_draw_arc(fe->pixmap, fe->gc, fill, + cx - radius, cy - radius, + 2 * radius, 2 * radius, 0, 360 * 64); +} + struct blitter { GdkPixmap *pixmap; int w, h, x, y;