Commit f1ac4ef7 authored by Dirk Thierbach's avatar Dirk Thierbach Committed by Alexandre Julliard

Fixed bug in StretchDIBits32 (wrong origin).

parent 36636ed7
......@@ -142,8 +142,10 @@ INT32 WINAPI StretchDIBits32(HDC32 hdc, INT32 xDst, INT32 yDst, INT32 widthDst,
bits, info, wUsage );
hdcMem = CreateCompatibleDC32( hdc );
hOldBitmap = SelectObject32( hdcMem, hBitmap );
/* Origin for DIBitmap is bottom left ! */
StretchBlt32( hdc, xDst, yDst, widthDst, heightDst,
hdcMem, xSrc, ySrc, widthSrc, heightSrc, dwRop );
hdcMem, xSrc, info->bmiHeader.biHeight - heightSrc - ySrc,
widthSrc, heightSrc, dwRop );
SelectObject32( hdcMem, hOldBitmap );
DeleteDC32( hdcMem );
DeleteObject32( hBitmap );
......
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