From f76fe4d82dbde6c3d9f90839c03af1afdc5ae964 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 30 Dec 2011 16:29:03 +0000 Subject: Fix typo in draw/draw_affine.c causing offsetting of shape plane The shape plane was being incorrectly offset from the dest plane. This could have caused SEGVs or incorrect results when blending back. This solves the hivemind.pdf iphone being clipped on the right hand side. --- draw/draw_affine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'draw') diff --git a/draw/draw_affine.c b/draw/draw_affine.c index 61936ad9..a90ac087 100644 --- a/draw/draw_affine.c +++ b/draw/draw_affine.c @@ -677,7 +677,7 @@ fz_paint_image_imp(fz_pixmap *dst, fz_bbox scissor, fz_pixmap *shape, fz_pixmap if (shape) { hw = shape->w; - hp = shape->samples + ((y - shape->y) * hw) + x - dst->x; + hp = shape->samples + ((y - shape->y) * hw) + x - shape->x; } else { -- cgit v1.2.3