[cairo] Fix crash - SurfacePatternDrawFunc in cairo-quartz-surface.c

Mox Soini mox at iki.fi
Fri Apr 6 01:48:11 PDT 2007

Hi all,

I'm trying to port the OpenOffice.org's cairo canvas to Mac OS X
Quartz, and I have a more-or-less working build of it.

Otherwise it seems to be working fine, except when the code was
implemented in OOo to take advantage of native images as source
surface (using CGBitmapContext), the SurfacePatternDrawFunc() crashed.

This was caused by _init_pattern_with_snapshot() failing in

The attached patch (against the cairo HEAD) fixes this problem and I'm
able to see the native images properly in OpenOffice.org's full screen
presentation mode (i.e. in Impress)

Best Regards,

      Mox Soini

Mox on G
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-quartz-repeatingpattern-crashfix.patch
Type: application/octet-stream
Size: 1435 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070406/8939f751/cairo-quartz-repeatingpattern-crashfix-0001.obj

More information about the cairo mailing list