From 7366d159fc8e64689b8fcf22527315e442918ec0 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Mon, 20 Jun 2011 12:47:02 +0200 Subject: [PATCH] comctl32: Don't redraw whole listview in double buffering mode. --- dlls/comctl32/listview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 2b3adf520ec..1a71fed321d 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -4996,6 +4996,9 @@ static void LISTVIEW_Refresh(LISTVIEW_INFO *infoPtr, HDC hdc, const RECT *prcEra SelectObject(hdc, hbmp); SelectObject(hdc, infoPtr->hFont); + + if(GetClipBox(hdcOrig, &rcClient)) + IntersectClipRect(hdc, rcClient.left, rcClient.top, rcClient.right, rcClient.bottom); } else { /* Save dc values we're gonna trash while drawing * FIXME: Should be done in LISTVIEW_DrawItem() */