diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2014-03-14 21:23:32 +0000 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2014-03-14 21:23:32 +0000 |
commit | 0af7dc6b7a6b59b735efb25e93dd4e62be2126d5 (patch) | |
tree | c08c1b55d7ae0793a37a9e621a1adebb740f12c8 /Build/source/texk/web2c/xetexdir/XeTeX_pic.c | |
parent | 97f7834d79c2ef1a3a7a3d0ed038881a2fb1f459 (diff) |
Sync XeTeX
git-svn-id: svn://tug.org/texlive/trunk@33175 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeX_pic.c')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/XeTeX_pic.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeX_pic.c b/Build/source/texk/web2c/xetexdir/XeTeX_pic.c index ff4266be280..92233654232 100644 --- a/Build/source/texk/web2c/xetexdir/XeTeX_pic.c +++ b/Build/source/texk/web2c/xetexdir/XeTeX_pic.c @@ -33,7 +33,6 @@ authorization from the copyright holders. /* XeTeX_pic.c interface between xetex and graphics files - (not used on OS X -- we use ImageIO graphics importers instead) only needs to get image dimensions, not actually load/process the file */ @@ -110,7 +109,7 @@ find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page) } goto done; } - + if (check_for_bmp(fp)) { struct bmp_info info; err = bmp_scan_file(&info, fp); @@ -120,7 +119,7 @@ find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page) } goto done; } - + if (check_for_png(fp)) { struct png_info info; err = png_scan_file(&info, fp); @@ -129,10 +128,10 @@ find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page) bounds->ht = (info.height * 72.27) / info.ydpi; } goto done; - } + } /* could support other file types here (TIFF, WMF, etc?) */ - + done: if (fp != NULL) fclose(fp); @@ -143,6 +142,6 @@ done: if (pic_path != NULL) free(pic_path); } - + return err; } |