From 8b3303ddbfbe86f5e33e8a92b1d02707ff56844a Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Mon, 22 Jun 2020 16:39:31 +0200 Subject: icon view: buffered paint only update rect --- alf/alficon.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/alf/alficon.cpp b/alf/alficon.cpp index eb83815..6b970d5 100644 --- a/alf/alficon.cpp +++ b/alf/alficon.cpp @@ -50,12 +50,8 @@ ALF_IconView_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd, &ps); - RECT rcClient; - GetClientRect(hwnd, &rcClient); - RECT rcPaint = { 0, 0, rcClient.right - rcClient.left, rcClient.bottom - rcClient.top }; - HDC hdcBuffer = NULL; - ALF_Compat_HPAINTBUFFER hpb = ALF_Compat_BeginBufferedPaint(hdc, &rcPaint, 0, NULL, &hdcBuffer); + ALF_Compat_HPAINTBUFFER hpb = ALF_Compat_BeginBufferedPaint(hdc, &ps.rcPaint, 0, NULL, &hdcBuffer); if (hpb) { ALF_IconView_Paint(hwnd, priv, hdcBuffer, &ps.rcPaint); ALF_Compat_EndBufferedPaint(hpb, TRUE); -- cgit v1.2.3