From a72c65e9176c51de95db2fdbf4c5d946a4911695 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 2 Dec 2009 08:37:20 -0800 Subject: fb: Adjust transform or composite coordinates for pixman operations Windows (or even pixmaps, in some cases) may not sit at the origin of the containing pixmap, so any coordinates relative to the drawable must be adjusted. For destinations and untransformed sources, the operation coordinates are adjusted. For transformed sources, the transform matrix is adjusted. Signed-off-by: Keith Packard Acked-by: Soeren Sandmann --- fb/fb.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'fb/fb.h') diff --git a/fb/fb.h b/fb/fb.h index ed21f9eb6..02d6c0372 100644 --- a/fb/fb.h +++ b/fb/fb.h @@ -2082,8 +2082,11 @@ fbFillRegionSolid (DrawablePtr pDrawable, FbBits xor); extern _X_EXPORT pixman_image_t * -image_from_pict (PicturePtr pict, - Bool has_clip); +image_from_pict (PicturePtr pict, + Bool has_clip, + int *xoff, + int *yoff); + extern _X_EXPORT void free_pixman_pict (PicturePtr, pixman_image_t *); #endif /* _FB_H_ */ -- cgit v1.2.3