Commit e32932e6 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi: Fix 24bpp -> 32bpp copy.

parent 62b69d64
......@@ -897,7 +897,9 @@ INT WINAPI GetDIBits(
width = min(srcwidth, dstwidth);
for( y = 0; y < lines; y++) {
for( x = 0; x < width; x++, srcbits+=3 )
*dstbits++ = ((DWORD)*srcbits) & 0x00ffffff;
*dstbits++ = srcbits[0] |
(srcbits[1] << 8) |
(srcbits[2] << 16);
dstbits=(LPDWORD)(dbits+=dstwidthb);
srcbits=(sbits+=srcwidthb);
}
......
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