summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-bmp.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-03-05 21:20:28 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-03-05 21:20:28 +0000
commitc3b3b3a5b7bc0d6d18a227030cd41c59f2661798 (patch)
tree107a8c469c926ab25a5e49fd112c857614eaa169 /gdk-pixbuf/io-bmp.c
parent385bd6a54e2c0b6b2ca69c8f66d5657a48f78b47 (diff)
downloadgdk-pixbuf-c3b3b3a5b7bc0d6d18a227030cd41c59f2661798.tar.gz
Don't try to load an alpha channel from the BMP, since there is no
Fri Mar 5 22:22:25 2004 Matthias Clasen <maclas@gmx.de> * io-bmp.c (OneLine32): Don't try to load an alpha channel from the BMP, since there is no evidence that even 32bit BMPs have an alpha channel. (#135502)
Diffstat (limited to 'gdk-pixbuf/io-bmp.c')
-rw-r--r--gdk-pixbuf/io-bmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index e14a01127..d43bed95a 100644
--- a/gdk-pixbuf/io-bmp.c
+++ b/gdk-pixbuf/io-bmp.c
@@ -624,7 +624,7 @@ static void OneLine32(struct bmp_progressive_state *context)
*pixels++ = (r << r_lshift) | (r >> r_rshift);
*pixels++ = (g << g_lshift) | (g >> g_rshift);
*pixels++ = (b << b_lshift) | (b >> b_rshift);
- *pixels++ = src[3]; /* alpha */
+ *pixels++ = 0xff;
src += 4;
}
@@ -633,7 +633,7 @@ static void OneLine32(struct bmp_progressive_state *context)
*pixels++ = src[2];
*pixels++ = src[1];
*pixels++ = src[0];
- *pixels++ = src[3];
+ *pixels++ = 0xff;
src += 4;
}