[draw] line-width increasing from 1.0 to 1.25 for line-style

1.25 figured out by testing...

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
marco candrian 2008-04-19 05:17:02 +02:00 committed by Julien Danjou
parent 37f05a8277
commit 1b65a8acfd
1 changed files with 4 additions and 0 deletions

View File

@ -503,6 +503,8 @@ draw_graph_line(DrawCtx *ctx, area_t rect, int *to, int cur_index,
* (since line-drawing is the last on the graph, no need to reset to _NONE) */ * (since line-drawing is the last on the graph, no need to reset to _NONE) */
/* Not much difference to CAIRO_ANTIALIAS_DEFAULT, but recommend for LCD */ /* Not much difference to CAIRO_ANTIALIAS_DEFAULT, but recommend for LCD */
cairo_set_antialias(ctx->cr, CAIRO_ANTIALIAS_SUBPIXEL); cairo_set_antialias(ctx->cr, CAIRO_ANTIALIAS_SUBPIXEL);
/* a nicer, better visible line compared to 1.0 */
cairo_set_line_width(ctx->cr, 1.25);
pat = draw_setup_cairo_color_source(ctx, patt_rect, pcolor, pcolor_center, pcolor_end); pat = draw_setup_cairo_color_source(ctx, patt_rect, pcolor, pcolor_center, pcolor_end);
@ -549,6 +551,8 @@ draw_graph_line(DrawCtx *ctx, area_t rect, int *to, int cur_index,
if(pat) if(pat)
cairo_pattern_destroy(pat); cairo_pattern_destroy(pat);
/* reset line-width */
cairo_set_line_width(ctx->cr, 1.0);
} }
/** Draw a circle /** Draw a circle