summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-01-20 17:39:25 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-01-20 18:05:59 +0100
commitf08f46797df8d6cca982c08ed16eb1934b1dc7d9 (patch)
treeb47ad08d45680ecc5a481a41b341ac7b86f7b8c5 /draw
parent00ab7bd42463a4547dd563dd16cc99236c980459 (diff)
downloadmupdf-f08f46797df8d6cca982c08ed16eb1934b1dc7d9.tar.xz
Flip images the right side up in the PDF interpreter.
This way both pixmaps for rendering and image data are top-down.
Diffstat (limited to 'draw')
-rw-r--r--draw/draw_affine.c3
1 files changed, 1 insertions, 2 deletions
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);