From 727a42eb4135f926a44763509fff539ad844bf2e Mon Sep 17 00:00:00 2001 From: marco candrian Date: Sat, 12 Apr 2008 05:41:46 +0000 Subject: [PATCH] [common/draw] force the draw of the left bottom corner on rectangles setting the miter limit to 100 works here. How to do it really properly, I won't know actually. http://cairographics.org/manual/cairo-cairo-t.html#cairo-set-miter-limit --- common/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/draw.c b/common/draw.c index d5040af8..916b9c3a 100644 --- a/common/draw.c +++ b/common/draw.c @@ -340,7 +340,7 @@ draw_rectangle(DrawCtx *ctx, area_t geometry, float line_width, Bool filled, XCo { cairo_set_antialias(ctx->cr, CAIRO_ANTIALIAS_NONE); cairo_set_line_width(ctx->cr, line_width); - cairo_set_miter_limit(ctx->cr, 0.0); + cairo_set_miter_limit(ctx->cr, 100.0); cairo_set_line_join(ctx->cr, CAIRO_LINE_JOIN_MITER); cairo_set_source_rgb(ctx->cr, color.red / 65535.0, @@ -380,7 +380,7 @@ draw_rectangle_gradient(DrawCtx *ctx, area_t geometry, float line_width, Bool fi cairo_set_antialias(ctx->cr, CAIRO_ANTIALIAS_NONE); cairo_set_line_width(ctx->cr, line_width); - cairo_set_miter_limit(ctx->cr, 0.0); + cairo_set_miter_limit(ctx->cr, 100.0); cairo_set_line_join(ctx->cr, CAIRO_LINE_JOIN_MITER); pat = draw_setup_cairo_color_source(ctx, pattern_rect, pcolor, pcolor_center, pcolor_end);