From de085341deeb2b279b9afb72b03e1d7a097a7b0a Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Wed, 26 Oct 2016 23:13:54 +0800 Subject: Update ios/android to use new way of passion stext options. In addition, make all callers passing 0 as a point pass NULL instead. --- platform/ios/Classes/MuPageViewNormal.m | 2 +- platform/ios/Classes/MuPageViewReflow.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/ios/Classes') diff --git a/platform/ios/Classes/MuPageViewNormal.m b/platform/ios/Classes/MuPageViewNormal.m index 7a9d9857..0b50855c 100644 --- a/platform/ios/Classes/MuPageViewNormal.m +++ b/platform/ios/Classes/MuPageViewNormal.m @@ -77,7 +77,7 @@ static NSArray *enumerateWords(fz_document *doc, fz_page *page) sheet = fz_new_stext_sheet(ctx); text = fz_new_stext_page(ctx, fz_bound_page(ctx, page, &mediabox)); - dev = fz_new_stext_device(ctx, sheet, text, 0); + dev = fz_new_stext_device(ctx, sheet, text, NULL); fz_run_page(ctx, page, dev, &fz_identity, NULL); fz_close_device(ctx, dev); fz_drop_device(ctx, dev); diff --git a/platform/ios/Classes/MuPageViewReflow.m b/platform/ios/Classes/MuPageViewReflow.m index 8356ac6a..c5963f2f 100644 --- a/platform/ios/Classes/MuPageViewReflow.m +++ b/platform/ios/Classes/MuPageViewReflow.m @@ -25,7 +25,7 @@ NSString *textAsHtml(fz_document *doc, int pageNum) ctm = fz_identity; sheet = fz_new_stext_sheet(ctx); text = fz_new_stext_page(ctx, fz_bound_page(ctx, page, &mediabox)); - dev = fz_new_stext_device(ctx, sheet, text, 0); + dev = fz_new_stext_device(ctx, sheet, text, NULL); page = fz_load_page(ctx, doc, pageNum); fz_run_page(ctx, page, dev, &ctm, NULL); fz_close_device(ctx, dev); -- cgit v1.2.3