Module: wine Branch: master Commit: 7366d159fc8e64689b8fcf22527315e442918ec0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7366d159fc8e64689b8fcf2252... Author: Piotr Caban <piotr(a)codeweavers.com> Date: Mon Jun 20 12:47:02 2011 +0200 comctl32: Don't redraw whole listview in double buffering mode. --- dlls/comctl32/listview.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 2b3adf5..1a71fed 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() */