mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
Fixed bug in StretchDIBits32 (wrong origin).
This commit is contained in:
parent
36636ed74c
commit
f1ac4ef72b
@ -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 );
|
||||
StretchBlt32( hdc, xDst, yDst, widthDst, heightDst,
|
||||
hdcMem, xSrc, ySrc, widthSrc, heightSrc, dwRop );
|
||||
/* Origin for DIBitmap is bottom left ! */
|
||||
StretchBlt32( hdc, xDst, yDst, widthDst, heightDst,
|
||||
hdcMem, xSrc, info->bmiHeader.biHeight - heightSrc - ySrc,
|
||||
widthSrc, heightSrc, dwRop );
|
||||
SelectObject32( hdcMem, hOldBitmap );
|
||||
DeleteDC32( hdcMem );
|
||||
DeleteObject32( hBitmap );
|
||||
|
Loading…
Reference in New Issue
Block a user