mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[WIN32K:NTGDI] Fix brush origin for pattern painting
Use pdc->ptlFillOrigin (which is adjusted by the Window origin already) instead of pdc->pdcattr->ptlBrushOrigin. Fixes several gdiplus_winetest:brush tests
This commit is contained in:
@@ -1274,7 +1274,7 @@ IntGdiFillRgn(
|
||||
bRet = IntEngPaint(&pdc->dclevel.pSurface->SurfObj,
|
||||
(CLIPOBJ *)&xcoClip,
|
||||
pbo,
|
||||
&pdc->pdcattr->ptlBrushOrigin,
|
||||
&pdc->ptlFillOrigin,
|
||||
mix);
|
||||
|
||||
DC_vFinishBlit(pdc, NULL);
|
||||
@@ -1547,10 +1547,10 @@ NtGdiGetPixel(
|
||||
ptlSrc.x += pdc->ptlDCOrig.x;
|
||||
ptlSrc.y += pdc->ptlDCOrig.y;
|
||||
|
||||
rcDest.left = x;
|
||||
rcDest.top = y;
|
||||
rcDest.right = x + 1;
|
||||
rcDest.bottom = y + 1;
|
||||
rcDest.left = ptlSrc.x;
|
||||
rcDest.top = ptlSrc.y;
|
||||
rcDest.right = ptlSrc.x + 1;
|
||||
rcDest.bottom = ptlSrc.y + 1;
|
||||
|
||||
/* Prepare DC for blit */
|
||||
DC_vPrepareDCsForBlit(pdc, &rcDest, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user