[cairo] A hidden offset for the Xlib backend

Keith Packard keithp at keithp.com
Sat Mar 12 08:10:03 PST 2005


Around 9 o'clock on Mar 12, Owen Taylor wrote:

> (*) If implementing cairo_surface_set_device_offset() this way, you'd 
> need to document that changing the device offset after creating a
> cairo_t for a surface gives surprising results, since we can't
> change the CTM for the cairo_t at that point. Not a really a practical
> problem, but a little ugly.

It needn't give surprising results; we could document that the function 
ammended the offset by the supplied amount and then invert the matrix 
multiply order so that the translate applied in device space rather than 
user space.

-keith


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050312/ec374cbd/attachment.pgp


More information about the cairo mailing list