Bug 22908

Summary: Invalid output of radial gradient
Product: pixman Reporter: Carlos Garcia Campos <carlosgc>
Component: pixmanAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: git master   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Test case
Screenshot

Description Carlos Garcia Campos 2009-07-23 05:48:50 UTC
Created attachment 27947 [details]
Test case

While trying to implement radial gradients in poppler cairo backend, I noticed that the cairo code used to generate the pdf file doesn't provide the same output using an image surface. 

The attached file is a modified version of the original code (by adrianj) to generate both pdf and png outputs. I'll attach a screenshot too.
Comment 1 Carlos Garcia Campos 2009-07-23 05:49:45 UTC
Created attachment 27948 [details]
Screenshot
Comment 2 Chris Wilson 2009-07-23 11:12:24 UTC
commit 20d2df03059d6a5941464d80e81e8116ebf4dbfe
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Jul 23 19:08:40 2009 +0100

    Fix inversion of radial gradients when r2 > r1
    
    Fixes: Bug 22908 -- Invalid output of radial gradient
    http://bugs.freedesktop.org/show_bug.cgi?id=22908
    
    We also include a modified patch by André Tupinambá <andrelrt@gmail.com>,
    to pull constant expressions out of the inner radial gradient walker.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.