Commit 610aac1d authored by Mukund Sivaraman's avatar Mukund Sivaraman

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).
parent a19bbee5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment