mirror of https://github.com/GNOME/gimp.git
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:
parent
216470c728
commit
a0e6941db1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue