diff options
Diffstat (limited to 'alf/alficon.cpp')
| -rw-r--r-- | alf/alficon.cpp | 6 |
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); |
