diff options
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; |