From 1562dd03cbfe225670820e11c6d85f90b670dc52 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Sun, 19 Mar 2006 19:03:07 +0000 Subject: [project @ 2006-03-19 19:03:07 by rjek] Implemented unfilled disc plotting and GTK disc plotting svn path=/import/netsurf/; revision=2136 --- gtk/gtk_plotters.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gtk/gtk_plotters.c') diff --git a/gtk/gtk_plotters.c b/gtk/gtk_plotters.c index dd0add940..bfe3bfdc8 100644 --- a/gtk/gtk_plotters.c +++ b/gtk/gtk_plotters.c @@ -30,7 +30,7 @@ static bool nsgtk_plot_clip(int clip_x0, int clip_y0, int clip_x1, int clip_y1); static bool nsgtk_plot_text(int x, int y, struct css_style *style, const char *text, size_t length, colour bg, colour c); -static bool nsgtk_plot_disc(int x, int y, int radius, colour colour); +static bool nsgtk_plot_disc(int x, int y, int radius, colour c, bool filled); static bool nsgtk_plot_bitmap(int x, int y, int width, int height, struct bitmap *bitmap, colour bg); static bool nsgtk_plot_bitmap_tile(int x, int y, int width, int height, @@ -129,8 +129,14 @@ bool nsgtk_plot_text(int x, int y, struct css_style *style, } -bool nsgtk_plot_disc(int x, int y, int radius, colour colour) +bool nsgtk_plot_disc(int x, int y, int radius, colour c, bool filled) { + nsgtk_set_colour(c); + gdk_draw_arc(current_drawable, current_gc, + filled, x - (radius), y - radius, + radius * 2, radius * 2, + 0, + 360 * 64); return true; } -- cgit v1.2.3