From f08f46797df8d6cca982c08ed16eb1934b1dc7d9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 20 Jan 2012 17:39:25 +0100 Subject: Flip images the right side up in the PDF interpreter. This way both pixmaps for rendering and image data are top-down. --- draw/draw_affine.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'draw') diff --git a/draw/draw_affine.c b/draw/draw_affine.c index a90ac087..dc15eaf5 100644 --- a/draw/draw_affine.c +++ b/draw/draw_affine.c @@ -647,8 +647,7 @@ fz_paint_image_imp(fz_pixmap *dst, fz_bbox scissor, fz_pixmap *shape, fz_pixmap h -= y; /* map from screen space (x,y) to image space (u,v) */ - inv = fz_scale(1.0f / img->w, -1.0f / img->h); - inv = fz_concat(inv, fz_translate(0, 1)); + inv = fz_scale(1.0f / img->w, 1.0f / img->h); inv = fz_concat(inv, ctm); inv = fz_invert_matrix(inv); -- cgit v1.2.3