Commit 14a84276 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Corrected 24->32 conversion. Still only correct for little endian.

parent b3f8a639
......@@ -194,8 +194,10 @@ static void pixel_convert_32_to_24(
for (y = height; y--; ) {
unsigned char * srclineend = c_src+width*3;
while (c_src < srclineend ) {
*c_dst++ = (c_src[0] << 16)|(c_src[1] << 8)|c_src[2];
/* FIXME: wrong for big endian */
memcpy(c_dst,c_src,3);
c_src+=3;
c_dst++;
}
c_src+=pitch-width*3;
}
......
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