From 04aed2c2db7cadb2ecde7de8d1b012a46bd151e8 Mon Sep 17 00:00:00 2001 From: Henry Song Date: Fri, 24 Jul 2015 22:52:05 -0700 Subject: [PATCH] gl: gradient texture edge pixel color adjust Change-Id: I13ca5ad468167896b4c043358df474a9ecc469c6 Signed-off-by: nisanthmp --- src/cairo-gl-gradient.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/cairo-gl-gradient.c b/src/cairo-gl-gradient.c index 2f8c725b6..b204b0ba4 100644 --- a/src/cairo-gl-gradient.c +++ b/src/cairo-gl-gradient.c @@ -182,8 +182,13 @@ _cairo_gl_gradient_render (const cairo_gl_context_t *ctx, * the neareset stop to the zeroth pixel centre in order to correctly * populate the border color. For completeness, do both edges. */ - ((uint32_t*)bytes)[0] = color_stop_to_pixel(&stops[0]); - ((uint32_t*)bytes)[width-1] = color_stop_to_pixel(&stops[n_stops-1]); + + /* This not needed as we have generated pixman pixels by using the + * half pixel from left and right border + */ + /* ((uint32_t*)bytes)[0] = color_stop_to_pixel(&stops[0]); + * ((uint32_t*)bytes)[width-1] = color_stop_to_pixel(&stops[n_stops-1]); + */ return CAIRO_STATUS_SUCCESS; } -- 2.34.1