diff options
Diffstat (limited to 'converter')
-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 dfd175aa..fb89433c 100644 --- a/converter/other/bmptopnm.c +++ b/converter/other/bmptopnm.c @@ -231,6 +231,11 @@ GetCieXyzTriple(FILE * const fp) { +static struct pixelformat +defaultPixelformat(unsigned int const bitCount); + + + static void readOffBytes(FILE * const fp, unsigned int const nbytes) { /*---------------------------------------------------------------------------- @@ -322,6 +327,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 = COMP_RGB; pm_message("OS/2 BMP, %dx%dx%d", |