TOOLBAR: TOOLBAR_DrawPattern
Robert Shearman
rob at codeweavers.com
Sat Jul 17 08:28:42 CDT 2004
Filip Navara wrote:
> Changelog:
> - Make the pattern drawing in TOOLBAR_DrawPattern look better.
>
> Filip Navara, navaraf at reactos.com
>
>------------------------------------------------------------------------
>
>--- dlls/comctl32/toolbar.c 16 Jun 2004 06:46:13 -0000 1.15
>+++ dlls/comctl32/toolbar.c 16 Jul 2004 19:17:24 -0000
>@@ -634,7 +634,7 @@
> INT cy = lpRect->bottom - lpRect->top;
> clrTextOld = SetTextColor(hdc, tbcd->clrBtnHighlight);
> clrBkOld = SetBkColor(hdc, tbcd->clrBtnFace);
>- PatBlt (hdc, lpRect->left, lpRect->top, cx, cy, PATCOPY);
>+ PatBlt (hdc, lpRect->left + 2, lpRect->top + 2, cx - 4, cy - 4, PATCOPY);
> SetBkColor(hdc, clrBkOld);
> SetTextColor(hdc, clrTextOld);
> SelectObject (hdc, hbr);
>
>
This should use GetSystemMetrics(SM_CXEDGE and SM_CYEDGE). I'll submit a
patch to fix this since it has already been committed.
Rob
More information about the wine-devel
mailing list