Commit 5953a86a authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Properly handle SetDIBits failure in StretchDIBits.

parent 66386eb4
......@@ -290,11 +290,11 @@ INT WINAPI StretchDIBits(HDC hdc, INT xDst, INT yDst, INT widthDst,
dwRop );
}
SetDIBits(hdcMem, hBitmap, 0, height, bits, info, wUsage);
heightSrc = SetDIBits(hdcMem, hBitmap, 0, height, bits, info, wUsage);
/* Origin for DIBitmap may be bottom left (positive biHeight) or top
left (negative biHeight) */
StretchBlt( hdc, xDst, yDst, widthDst, heightDst,
if (heightSrc) StretchBlt( hdc, xDst, yDst, widthDst, heightDst,
hdcMem, xSrc, abs(height) - heightSrc - ySrc,
widthSrc, heightSrc, dwRop );
if(hpal)
......
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