# | Line 335 | Line 335 | tmap2bmp(char *fnin, char *fnout, char *expec, RGBPRIM | |
---|---|---|
335 | /* initialize BMP header */ | |
336 | if (tmflags & TM_F_BW) { | |
337 | hdr = BMPmappedHeader(xr, yr, 0, 256); | |
338 | < | hdr->compr = BI_RLE8; |
338 | > | if (fnout != NULL) |
339 | > | hdr->compr = BI_RLE8; |
340 | } else | |
341 | hdr = BMPtruecolorHeader(xr, yr, 0); | |
342 | if (hdr == NULL) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |