[cairo] Compile failing in xcb backend

James Cloos cloos at jhcloos.com
Wed May 9 11:16:27 PDT 2007


>>>>> "Chris" == Chris Wilson <chris at chris-wilson.co.uk> writes:

Chris> Ok, this doesn't quite have the desired effect. (Not that I
Chris> can claim my broken version was any better...)

I wasn't sure whether it did.  

Chris> Does xcb_render_util_find_standard_format() return a pointer to
Chris> permanently allocated memory?

It makes me look blind, but I cannot tell for certain.  I can't find the
definition of xcb_render_query_pict_formats_formats_iterator() called
from xcb_render_util_find_format() in xcb/util/renderutil/util.c....

But it probably returns a pointer to an element of an array of structs
declared as:

    static const struct {
	xcb_render_pictforminfo_t templ;
	unsigned long	      mask;
    } standardFormats[]

Chris> As xcb_surface_t copies the xcb_render_pictforminfo_t into an
Chris> embedded structure, but xcb_surface_font_private_t keeps a
Chris> pointer. (Just wondering whether the difference is significant.)

Likewise.

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the cairo mailing list