Commit a0e6941d authored by Massimo Valentini's avatar Massimo Valentini Committed by Kevin Cozens

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.
parent 216470c7
......@@ -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,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment