[gimp] Bug 669188: saving a monochrome bitmap picture ...
- From: Kevin Cozens <kcozens src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 669188: saving a monochrome bitmap picture ...
- Date: Thu, 2 Feb 2012 17:01:34 +0000 (UTC)
commit a0e6941db19736db0262298bc4e65a0ba4919d91
Author: Massimo Valentini <mvalentini src gnome org>
Date: Thu Feb 2 14:11:59 2012 +0100
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.
plug-ins/file-bmp/bmp-write.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/file-bmp/bmp-write.c b/plug-ins/file-bmp/bmp-write.c
index ab0b0e3..a3f5631 100644
--- a/plug-ins/file-bmp/bmp-write.c
+++ b/plug-ins/file-bmp/bmp-write.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]