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

This commit is contained in:
Marcus Meissner 2000-07-08 18:28:57 +00:00 committed by Alexandre Julliard
parent b3f8a6390f
commit 14a842761d
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}