diff options
author | Henry Song <henry.song@samsung.com> | 2015-07-24 22:52:05 -0700 |
---|---|---|
committer | nisanthmp <nisanth.mp@samsung.com> | 2015-08-03 19:03:24 +0530 |
commit | 04aed2c2db7cadb2ecde7de8d1b012a46bd151e8 (patch) | |
tree | 9a970351e7e518db10455d9d76f545fcc5b19a48 | |
parent | a9838c25d1d3e99e802b1fd5882ae74171e7df41 (diff) | |
download | cairo-04aed2c2db7cadb2ecde7de8d1b012a46bd151e8.tar.gz cairo-04aed2c2db7cadb2ecde7de8d1b012a46bd151e8.tar.bz2 cairo-04aed2c2db7cadb2ecde7de8d1b012a46bd151e8.zip |
gl: gradient texture edge pixel color adjust
Change-Id: I13ca5ad468167896b4c043358df474a9ecc469c6
Signed-off-by: nisanthmp <nisanth.mp@samsung.com>
-rw-r--r-- | src/cairo-gl-gradient.c | 9 |
1 files 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; } |