From 8d3c24e03efaf67cad48ceb5a76a2c52f784fb8f Mon Sep 17 00:00:00 2001 From: marco candrian Date: Thu, 31 Jan 2008 21:49:05 +0100 Subject: [PATCH] fix for cairo_arc Without a new (sub)path, it joined the new circle to the old reference point, what happend to be at the end of the title-text - therefore the line to it with cairo_stroke() Signed-off-by: Julien Danjou --- common/draw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/draw.c b/common/draw.c index 7243acc7..220b9849 100644 --- a/common/draw.c +++ b/common/draw.c @@ -230,6 +230,9 @@ draw_circle(DrawCtx *ctx, int x, int y, int r, Bool filled, XColor color) { cairo_set_line_width(ctx->cr, 1.0); cairo_set_source_rgb(ctx->cr, color.red / 65535.0, color.green / 65535.0, color.blue / 65535.0); + + cairo_new_sub_path(ctx->cr); /* don't draw from the old reference point to.. */ + if(filled) { cairo_arc (ctx->cr, x + r, y + r, r, 0, 2 * M_PI); -- 2.11.4.GIT