summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-05-09 14:25:21 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-05-09 14:25:21 +0000
commit07f191d65c7eaa1dba806a19d8c8a0348de02329 (patch)
tree93ab7968f144967dab5f7b79580c107e3fb64270 /Build/source/texk/web2c
parentc6a1325e4b6452a7cbdfb7dc26fe9c254a0255a6 (diff)
update bmpimage.c in dvipdfm-x and XeTeX
git-svn-id: svn://tug.org/texlive/trunk@33934 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r--Build/source/texk/web2c/xetexdir/image/bmpimage.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/xetexdir/image/bmpimage.c b/Build/source/texk/web2c/xetexdir/image/bmpimage.c
index 97793fc22e9..90355198caf 100644
--- a/Build/source/texk/web2c/xetexdir/image/bmpimage.c
+++ b/Build/source/texk/web2c/xetexdir/image/bmpimage.c
@@ -59,12 +59,14 @@
#define DIB_FILE_HEADER_SIZE 14
#define DIB_CORE_HEADER_SIZE 14
#define DIB_INFO_HEADER_SIZE 40
+#define DIB_INFO_HEADER_SIZE4 108
+#define DIB_INFO_HEADER_SIZE5 124
#define DIB_COMPRESS_NONE 0
#define DIB_COMPRESS_RLE8 1
#define DIB_COMPRESS_RLE4 2
-#define DIB_HEADER_SIZE_MAX (DIB_FILE_HEADER_SIZE+DIB_INFO_HEADER_SIZE)
+#define DIB_HEADER_SIZE_MAX (DIB_FILE_HEADER_SIZE+DIB_INFO_HEADER_SIZE5)
static void
WARN(const char *fmt, ...)
@@ -152,7 +154,9 @@ bmp_scan_file(struct bmp_info *info, FILE *fp)
bit_count = USHORT_LE(p); p += 2;
compression = DIB_COMPRESS_NONE;
psize = 3;
- } else if (hsize == DIB_INFO_HEADER_SIZE) {
+ } else if (hsize == DIB_INFO_HEADER_SIZE ||
+ hsize == DIB_INFO_HEADER_SIZE4 ||
+ hsize == DIB_INFO_HEADER_SIZE5) {
info->width = ULONG_LE(p); p += 4;
info->height = ULONG_LE(p); p += 4;
if (USHORT_LE(p) != 1) {