[gimp/gimp-2-8] file-bmp: Don't use alpha channel with BI_RGB compression type
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] file-bmp: Don't use alpha channel with BI_RGB compression type
- Date: Mon, 8 Oct 2012 03:48:35 +0000 (UTC)
commit 2ba0519456cb9b77f7ad781946ac68aa9fe5e517
Author: Mukund Sivaraman <muks banu com>
Date: Mon Oct 8 09:12:17 2012 +0530
file-bmp: Don't use alpha channel with BI_RGB compression type
Don't use alpha channel with BI_RGB compression type in
BITMAPINFOHEADER images (bug #573090, bug #674398).
plug-ins/file-bmp/bmp-read.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/file-bmp/bmp-read.c b/plug-ins/file-bmp/bmp-read.c
index 48888ff..30251c1 100644
--- a/plug-ins/file-bmp/bmp-read.c
+++ b/plug-ins/file-bmp/bmp-read.c
@@ -302,9 +302,9 @@ ReadBMP (const gchar *name,
masks[2].mask = 0x000000ff;
masks[2].shiftin = 0;
masks[2].max_value= (gfloat)255.0;
- masks[3].mask = 0xff000000;
- masks[3].shiftin = 24;
- masks[3].max_value= (gfloat)255.0;
+ masks[3].mask = 0x00000000;
+ masks[3].shiftin = 0;
+ masks[3].max_value= (gfloat)0.0;
break;
case 24:
masks[0].mask = 0xff0000;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]