From 14a842761dcca3ddbcd151a41580aca534f375c9 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 8 Jul 2000 18:28:57 +0000 Subject: [PATCH] Corrected 24->32 conversion. Still only correct for little endian. --- dlls/ddraw/convert.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ddraw/convert.c b/dlls/ddraw/convert.c index 503a0c46a94..5097e85df94 100644 --- a/dlls/ddraw/convert.c +++ b/dlls/ddraw/convert.c @@ -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; }