diff options
Diffstat (limited to 'converter/other/bmptopnm.c')
-rw-r--r-- | converter/other/bmptopnm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/converter/other/bmptopnm.c b/converter/other/bmptopnm.c index 9e476ef4..bf4d10f8 100644 --- a/converter/other/bmptopnm.c +++ b/converter/other/bmptopnm.c @@ -227,6 +227,11 @@ GetCieXyzTriple(FILE * const fp) { +static struct pixelformat +defaultPixelformat(unsigned int const bitCount); + + + static void readOffBytes(FILE * const fp, unsigned int const nbytes) { /*---------------------------------------------------------------------------- @@ -318,6 +323,8 @@ readOs2InfoHeader(FILE * const ifP, pm_error("Unrecognized bits per pixel in OS/2 BMP file header: %d", headerP->cBitCount); + headerP->pixelformat = defaultPixelformat(headerP->cBitCount); + headerP->compression = BMPCOMP_RGB; pm_message("OS/2 BMP, %dx%dx%d", |