diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-05-09 14:25:21 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-05-09 14:25:21 +0000 |
commit | 07f191d65c7eaa1dba806a19d8c8a0348de02329 (patch) | |
tree | 93ab7968f144967dab5f7b79580c107e3fb64270 /Build/source/texk/dvipdfm-x/bmpimage.c | |
parent | c6a1325e4b6452a7cbdfb7dc26fe9c254a0255a6 (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/dvipdfm-x/bmpimage.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/bmpimage.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/bmpimage.c b/Build/source/texk/dvipdfm-x/bmpimage.c index 317c5b514e9..5e3297713d7 100644 --- a/Build/source/texk/dvipdfm-x/bmpimage.c +++ b/Build/source/texk/dvipdfm-x/bmpimage.c @@ -39,12 +39,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 long read_raster_rle8 (unsigned char *data_ptr, long width, long height, FILE *fp); @@ -130,7 +132,9 @@ bmp_include_image (pdf_ximage *ximage, 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) { |