diff options
author | Joseph Heenan <joseph@emobix.co.uk> | 2016-05-25 09:42:40 +0100 |
---|---|---|
committer | Joseph Heenan <joseph@emobix.co.uk> | 2016-05-25 09:42:40 +0100 |
commit | 6d3c81d9465b24d3233188dc335c226950c06539 (patch) | |
tree | 2674ad4dfe61ae1a17b65ab7369517482b0b4aed /platform/ios | |
parent | e0a658dfc7ab6c199bb894f8a7cd66fe7bd72dfb (diff) | |
download | mupdf-6d3c81d9465b24d3233188dc335c226950c06539.tar.xz |
iOS: Update after pixmap alpha made optional
Diffstat (limited to 'platform/ios')
-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) { |