[cairo] png streams

Carl Worth cworth at cworth.org
Wed Feb 15 17:04:36 PST 2006


On Thu, 16 Feb 2006 02:29:40 +0200, wrote:
>
>   I'm new to cairo so I have one little question :)

Welcome!

> cairo_status_t output (void *closure, unsigned char *data, unsigned int length)

Try changing that to:

  cairo_status_t output (void *closure, const unsigned char *data, unsigned int length)

> graph.c:85: warning: passing argument 2 of 'cairo_surface_write_to_png_stream'
> from incompatible pointer type

and that should go away.

Have fun with cairo!

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060215/7bfb399f/attachment.pgp


More information about the cairo mailing list