From: Henry Song Date: Sat, 25 Jul 2015 05:52:05 +0000 (-0700) Subject: gl: gradient texture edge pixel color adjust X-Git-Tag: submit/tizen/20151214.061957~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F45105%2F3;p=platform%2Fcore%2Fgraphics%2Fcairo.git gl: gradient texture edge pixel color adjust Change-Id: I13ca5ad468167896b4c043358df474a9ecc469c6 Signed-off-by: nisanthmp --- 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; }