From fe07cd4f307e0bbacdccb3029619a668a3b92451 Mon Sep 17 00:00:00 2001 From: marco candrian Date: Sun, 13 Apr 2008 02:09:10 +0200 Subject: [PATCH] [draw] miter set to 10 is enough Signed-off-by: Julien Danjou --- common/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/draw.c b/common/draw.c index b7f4d6dda..ac01130b2 100644 --- a/common/draw.c +++ b/common/draw.c @@ -342,7 +342,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, 100.0); + cairo_set_miter_limit(ctx->cr, 10.0); cairo_set_line_join(ctx->cr, CAIRO_LINE_JOIN_MITER); cairo_set_source_rgb(ctx->cr, color.red / 65535.0, @@ -382,7 +382,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, 100.0); + cairo_set_miter_limit(ctx->cr, 10.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);