Bug 669188: saving a monochrome bitmap picture ...

The colormap was being written within the DIB header.
It must follow both the mask and color space info.
This commit is contained in:
Massimo Valentini 2012-02-02 14:11:59 +01:00 committed by Kevin Cozens
parent 216470c728
commit a0e6941db1
1 changed files with 2 additions and 1 deletions

View File

@ -429,7 +429,6 @@ WriteBMP (const gchar *filename,
FromL (Bitmap_Head.biClrImp, &puffer[0x20]);
Write (outfile, puffer, 36);
write_color_map (outfile, Red, Green, Blue, MapSize);
if (mask_info_size > 0)
{
@ -515,6 +514,8 @@ WriteBMP (const gchar *filename,
Write (outfile, puffer, color_space_size);
}
write_color_map (outfile, Red, Green, Blue, MapSize);
/* After that is done, we write the image ... */
write_image (outfile,