mupdf: call fz_run_page() only once
authorAli Gholami Rudi <ali@rudi.ir>
Sat, 16 Jun 2012 13:56:28 +0000 (16 18:26 +0430)
committerAli Gholami Rudi <ali@rudi.ir>
Sat, 16 Jun 2012 13:56:28 +0000 (16 18:26 +0430)
mupdf.c

diff --git a/mupdf.c b/mupdf.c
index 9c61bd2..d242ad3 100644 (file)
--- a/mupdf.c
+++ b/mupdf.c
@@ -36,7 +36,6 @@ int doc_draw(struct doc *doc, fbval_t *bitmap, int p, int rows, int cols, int zo
        fz_clear_pixmap_with_value(doc->ctx, pix, 0xff);
 
        dev = fz_new_draw_device(doc->ctx, pix);
-       fz_run_page(doc->pdf, page, dev, fz_identity, NULL);
        fz_run_page(doc->pdf, page, dev, ctm, NULL);
        fz_free_device(dev);