Mikołaj Zalewski : comctl32: toolbar: Don' t try to redraw buttons outside of the clipping rect.
Alexandre Julliard
julliard at wine.codeweavers.com
Sat Oct 14 14:13:45 CDT 2006
Module: wine
Branch: master
Commit: d929cec6712bfb300fda78f42fda94044b1d05fc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d929cec6712bfb300fda78f42fda94044b1d05fc
Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date: Sat Oct 14 19:53:39 2006 +0200
comctl32: toolbar: Don't try to redraw buttons outside of the clipping rect.
---
dlls/comctl32/toolbar.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index 5d82a1d..5758356 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -1111,6 +1111,8 @@ TOOLBAR_Refresh (HWND hwnd, HDC hdc, PAI
for (i = 0; i < infoPtr->nNumButtons; i++, btnPtr++)
{
BOOL bDraw;
+ if (!RectVisible(hdc, &btnPtr->rect))
+ continue;
if (infoPtr->dwExStyle & TBSTYLE_EX_HIDECLIPPEDBUTTONS)
{
IntersectRect(&rcTemp, &rcClient, &btnPtr->rect);
More information about the wine-cvs
mailing list