diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2008-05-21 13:43:19 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2008-05-21 13:43:19 +0000 |
commit | 455a8e9c0b4d9927d212514a5b77bd90cd5b8627 (patch) | |
tree | fb733b2fc4657d24629fe63696ca0185c916e4d3 /Build/source/texk/web2c/xetexdir/XeTeX_mac.c | |
parent | ebdcfba2fc6c9bf4db2008a00058f3422a9d1da8 (diff) |
xetex update, now 0.998.5-dev (xetex svn r.689)
git-svn-id: svn://tug.org/texlive/trunk@8273 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeX_mac.c')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/XeTeX_mac.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeX_mac.c b/Build/source/texk/web2c/xetexdir/XeTeX_mac.c index e9a728ecb85..4efd42fee39 100644 --- a/Build/source/texk/web2c/xetexdir/XeTeX_mac.c +++ b/Build/source/texk/web2c/xetexdir/XeTeX_mac.c @@ -925,6 +925,7 @@ countpdffilepages() int find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page) + /* returns bounds in TeX points */ { *path = NULL; @@ -998,10 +999,10 @@ find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page) r = CGPDFPageGetBoxRect(pageRef, boxType); } - bounds->x = r.origin.x; - bounds->y = r.origin.y; - bounds->wd = r.size.width; - bounds->ht = r.size.height; + bounds->x = r.origin.x * 72.27 / 72.0; + bounds->y = r.origin.y * 72.27 / 72.0; + bounds->wd = r.size.width * 72.27 / 72.0; + bounds->ht = r.size.height * 72.27 / 72.0; CGPDFDocumentRelease(document); result = noErr; } @@ -1018,8 +1019,8 @@ find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page) result = GraphicsImportGetImageDescription(ci, &desc); bounds->x = 0; bounds->y = 0; - bounds->wd = (*desc)->width * 72.0 / Fix2X((*desc)->hRes); - bounds->ht = (*desc)->height * 72.0 / Fix2X((*desc)->vRes); + bounds->wd = (*desc)->width * 72.27 / Fix2X((*desc)->hRes); + bounds->ht = (*desc)->height * 72.27 / Fix2X((*desc)->vRes); DisposeHandle((Handle)desc); (void)CloseComponent(ci); } |