[cairo] win32 BUG: crash with CAIRO_OPERATOR_DIFFERENCE and rectangles

Andrea Canciani ranma42 at gmail.com
Sat Jun 25 04:40:07 PDT 2011

On Fri, Apr 22, 2011 at 1:10 PM, Peter Frentrup <peter_frentrup at gmx.de> wrote:
> Hi all,
> I use cairo 1.10.0 and get an assetion failure when filling a rectangle
> using CAIRO_OPERATOR_DIFFERENCE on a win32 surface.
> Assertion failed: !"reached", file cairo-win32-surface.c, line 1405
> That function categorize_solid_dest_operator() around line 1405 does not
> handle any of the "fancy"/new operators :-(
> Everything works fine for non-rectangled shapes.
> A sample application is in the attachment.

Sorry for the delay. The bug should be fixed in cairo master by:

commit a468489270faabacbf89febc250c2d393fda1a13
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Fri Jun 24 16:23:28 2011 +0200

    win32: Fallback upon PDF blend operators

    GDI does not support PDF blend modes, so they are implemented by
    falling back.

    Fixes extended-blend-solid, extended-blend-solid-alpha.

    Bug pointed out by Peter Frentrup <peter_frentrup at gmx.de> in

Thank you for your bugreport!


More information about the cairo mailing list