[cairo] cairo_win32_surface_create api change

Keith Packard keithp at keithp.com
Wed Dec 7 22:03:30 PST 2005

> I spent some time tracking down the problem with trap-clip.c on win32,
> and it wasn't really related to the win32 code at all.
> Note that _cairo_surface_get_extents() is possibly dependent
> on the clip ... this has always been the case and was intended to be
> the case, though it isn't entirely clear from the function docs.
> All the code calling _cairo_surface_get_extents() expects this, but the
> problem is that the call in _cairo_clip_intersect_mask() is calling
> _cairo_surface_get_extents() on a surface *where the clip isn't 
> up-to-date*.

So _cairo_surface_get_extents should update the clip before computing
the extents, right? Not setting the clip lazily will cause serious
troubles for some backends iirc.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20051207/4d8704b0/attachment-0001.pgp

More information about the cairo mailing list