diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-05-10 13:09:10 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-05-10 13:09:10 +0000 |
commit | 04ce8def2b9736329974c22de47c930815fc9183 (patch) | |
tree | 61c329bbc7fab56b37e682958deef4fb113a649f /Build | |
parent | d2e9453c7c0fb502cf94aa17f5aaa979416eb159 (diff) |
update bmpimage.c in dvipdfm-x and in XeTeX
git-svn-id: svn://tug.org/texlive/trunk@33959 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/dvipdfm-x/bmpimage.c | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/xetexdir/image/bmpimage.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/bmpimage.c b/Build/source/texk/dvipdfm-x/bmpimage.c index 97410936253..1e08ae210f8 100644 --- a/Build/source/texk/dvipdfm-x/bmpimage.c +++ b/Build/source/texk/dvipdfm-x/bmpimage.c @@ -125,6 +125,8 @@ bmp_include_image (pdf_ximage *ximage, FILE *fp) if (hsize == DIB_CORE_HEADER_SIZE) { info.width = USHORT_LE(p); p += 2; info.height = USHORT_LE(p); p += 2; + info.xdensity = 1.0; /* assume 72 dpi */ + info.ydensity = 1.0; /* assume 72 dpi */ if (USHORT_LE(p) != 1) { WARN("Unknown bcPlanes value in BMP COREHEADER."); return -1; diff --git a/Build/source/texk/web2c/xetexdir/image/bmpimage.c b/Build/source/texk/web2c/xetexdir/image/bmpimage.c index 3506eb8991c..6cc6bcb0619 100644 --- a/Build/source/texk/web2c/xetexdir/image/bmpimage.c +++ b/Build/source/texk/web2c/xetexdir/image/bmpimage.c @@ -147,6 +147,8 @@ bmp_scan_file(struct bmp_info *info, FILE *fp) if (hsize == DIB_CORE_HEADER_SIZE) { info->width = USHORT_LE(p); p += 2; info->height = USHORT_LE(p); p += 2; + info->xdpi = 72.0; /* assume 72 DPI */ + info->ydpi = 72.0; /* assume 72 DPI */ if (USHORT_LE(p) != 1) { WARN("Unknown bcPlanes value in BMP COREHEADER."); return -1; |