Commit c3b3b3a5 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent 385bd6a5
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)
Mon Mar 1 19:47:48 2004 Owen Taylor <otaylor@redhat.com>
* === Released 2.3.5 ====
......
......@@ -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;
}
......
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