diff options
author | fredrossperry <fredrossperry@gmail.com> | 2015-02-18 18:33:19 -0800 |
---|---|---|
committer | Joseph Heenan <joseph@emobix.co.uk> | 2015-02-25 16:06:00 +0000 |
commit | 95852acd089b4640db273890258089f9ac4972d5 (patch) | |
tree | 30a810ecf35e7d50f5496f75b98480e06789884f /platform/ios/Classes/MuAnnotation.m | |
parent | 09a165e4f469afe4ad4852211be73006dd905156 (diff) | |
download | mupdf-95852acd089b4640db273890258089f9ac4972d5.tar.xz |
iOS: conform to recent mupdf API changes.
Diffstat (limited to 'platform/ios/Classes/MuAnnotation.m')
-rw-r--r-- | platform/ios/Classes/MuAnnotation.m | 10 |
1 files changed, 5 insertions, 5 deletions
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 |