From 95852acd089b4640db273890258089f9ac4972d5 Mon Sep 17 00:00:00 2001 From: fredrossperry Date: Wed, 18 Feb 2015 18:33:19 -0800 Subject: iOS: conform to recent mupdf API changes. --- platform/ios/Classes/MuAnnotation.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'platform/ios/Classes/MuAnnotation.m') diff --git a/platform/ios/Classes/MuAnnotation.m b/platform/ios/Classes/MuAnnotation.m index e049bc83..89cc9d48 100644 --- a/platform/ios/Classes/MuAnnotation.m +++ b/platform/ios/Classes/MuAnnotation.m @@ -8,14 +8,14 @@ @synthesize type, rect; --(id) initFromAnnot:(fz_annot *)annot forDoc:(fz_document *)doc +-(id) initFromAnnot:(fz_annot *)annot forPage:(fz_page *)page; { self = [super init]; if (self) { fz_rect frect; - type = pdf_annot_type((pdf_annot *)annot); - fz_bound_annot(doc, annot, &frect); + type = pdf_annot_type(ctx, (pdf_annot *)annot); + fz_bound_annot(ctx, page, annot, &frect); rect.origin.x = frect.x0; rect.origin.y = frect.y0; rect.size.width = frect.x1 - frect.x0; @@ -24,8 +24,8 @@ return self; } -+(MuAnnotation *) annotFromAnnot:(fz_annot *)annot forDoc:(fz_document *)doc ++(MuAnnotation *) annotFromAnnot:(fz_annot *)annot forPage:(fz_page *)page; { - return [[[MuAnnotation alloc] initFromAnnot:annot forDoc:doc] autorelease]; + return [[[MuAnnotation alloc] initFromAnnot:annot forPage:page] autorelease]; } @end -- cgit v1.2.3