summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-06-22 16:39:31 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-06-22 16:39:31 +0200
commit8b3303ddbfbe86f5e33e8a92b1d02707ff56844a (patch)
tree81947c9a282bb775bba49951b44d401ca3492d7f
parentfc8f7a0075818b650f0a2f6b555159e796e1d130 (diff)
icon view: buffered paint only update rect
-rw-r--r--alf/alficon.cpp6
1 files changed, 1 insertions, 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);