[gimp] file-bmp: Don't use alpha channel with BI_RGB compression type



commit 610aac1dacdebe4e6bf52d669ce060585f010454
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 210b12d..335378e 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]