diff options
-rw-r--r-- | platform/ios/Classes/MuPageViewNormal.m | 2 | ||||
-rw-r--r-- | platform/ios/Classes/MuPrintPageRenderer.m | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/Classes/MuPageViewNormal.m b/platform/ios/Classes/MuPageViewNormal.m index bce0c271..5b536718 100644 --- a/platform/ios/Classes/MuPageViewNormal.m +++ b/platform/ios/Classes/MuPageViewNormal.m @@ -452,7 +452,7 @@ static fz_pixmap *renderPixmap(fz_document *doc, fz_display_list *page_list, fz_ fz_var(pix); fz_try(ctx) { - pix = fz_new_pixmap_with_bbox(ctx, fz_device_rgb(ctx), &bbox); + pix = fz_new_pixmap_with_bbox(ctx, fz_device_rgb(ctx), &bbox, 1); fz_clear_pixmap_with_value(ctx, pix, 255); dev = fz_new_draw_device(ctx, pix); diff --git a/platform/ios/Classes/MuPrintPageRenderer.m b/platform/ios/Classes/MuPrintPageRenderer.m index b2544825..b92b99c0 100644 --- a/platform/ios/Classes/MuPrintPageRenderer.m +++ b/platform/ios/Classes/MuPrintPageRenderer.m @@ -85,7 +85,7 @@ static fz_pixmap *createPixMap(CGSize size) dispatch_sync(queue, ^{ fz_try(ctx) { - pix = fz_new_pixmap(ctx, fz_device_rgb(ctx), size.width, size.height); + pix = fz_new_pixmap(ctx, fz_device_rgb(ctx), size.width, size.height, 1); } fz_catch(ctx) { |