[gimp] file-bmp: Rewrite code
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-bmp: Rewrite code
- Date: Sun, 8 May 2011 17:33:32 +0000 (UTC)
commit a713175375ab3ee08eda59c3851e20f0b6da13a4
Author: Mukund Sivaraman <muks banu com>
Date: Sun May 8 22:10:20 2011 +0530
file-bmp: Rewrite code
plug-ins/file-bmp/bmp-write.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/file-bmp/bmp-write.c b/plug-ins/file-bmp/bmp-write.c
index 63d0f0c..f45554a 100644
--- a/plug-ins/file-bmp/bmp-write.c
+++ b/plug-ins/file-bmp/bmp-write.c
@@ -344,8 +344,10 @@ WriteBMP (const gchar *filename,
if (BMPSaveData.encoded == 0)
{
- if (!mask_info_size) Bitmap_Head.biCompr = 0;
- else Bitmap_Head.biCompr = 3;
+ if (mask_info_size > 0)
+ Bitmap_Head.biCompr = 3; /* BI_BITFIELDS */
+ else
+ Bitmap_Head.biCompr = 0; /* BI_RGB */
}
else if (BitsPerPixel == 8)
Bitmap_Head.biCompr = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]