diff --git a/reactos/lib/gdi32/objects/bitblt.c b/reactos/lib/gdi32/objects/bitblt.c index 1e4ceb67b6c..6557eb70dfc 100644 --- a/reactos/lib/gdi32/objects/bitblt.c +++ b/reactos/lib/gdi32/objects/bitblt.c @@ -346,10 +346,10 @@ PolyPatBlt(HDC hDC,DWORD dwRop,PPATRECT pRects,int cRects,ULONG Reserved) HBRUSH hBrOld; for (i = 0;i= 33) + { + brush = 32; + } + brush = MappingTable[brush]; + hbrFrame = FrameBrushes[brush]; + p[0].hBrush = hbrFrame; + p[1].hBrush = hbrFrame; + p[2].hBrush = hbrFrame; + p[3].hBrush = hbrFrame; + p[0].r.left = r->left; + p[0].r.top = r->top; + p[0].r.right = r->right - r->left; + p[0].r.bottom = width; + p[1].r.left = r->left; + p[1].r.top = r->bottom - width; + p[1].r.right = r->right - r->left; + p[1].r.bottom = width; + p[2].r.left = r->left; + p[2].r.top = r->top + width; + p[2].r.right = width; + p[2].r.bottom = r->bottom - r->top - (width * 2); + p[3].r.left = r->right - width; + p[3].r.top = r->top + width; + p[3].r.right = width; + p[3].r.bottom = r->bottom - r->top - (width * 2); + return PolyPatBlt(hDc,rop,p,4,0); +}