From 8277693ab49042494ea6e882633fff0f690a7787 Mon Sep 17 00:00:00 2001 From: marco candrian Date: Sun, 13 Apr 2008 03:54:09 +0200 Subject: [PATCH] [common/draw] no slightly diagonal gradient anymore (again) that 'fix' didn't work out anyway properly. Following patches should do a better job. --- common/draw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/draw.c b/common/draw.c index ac01130b2..89037f992 100644 --- a/common/draw.c +++ b/common/draw.c @@ -307,9 +307,7 @@ draw_setup_cairo_color_source(DrawCtx *ctx, area_t rect, cairo_set_source_rgb(ctx->cr, pcolor->red / 65535.0, pcolor->green / 65535.0, pcolor->blue / 65535.0); else { - /* rext.x + 1 -> else will draw 1 pixel too much to the right or - * similar - cairo bug? */ - pat = cairo_pattern_create_linear(rect.x - 1, rect.y, rect.x + 1 + rect.width, rect.y + rect.height); + pat = cairo_pattern_create_linear(rect.x, rect.y, rect.x + rect.width, rect.y + rect.height); /* pcolor is always set (so far in awesome) */ cairo_pattern_add_color_stop_rgb(pat, 0.0, pcolor->red / 65535.0,