aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 3d34b2d95..9cd792e09 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -4041,9 +4041,7 @@ LRESULT ListBoxX::WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam
break;
case WM_PAINT: {
- PAINTSTRUCT ps;
- ::BeginPaint(hWnd, &ps);
- ::EndPaint(hWnd, &ps);
+ Painter painter(hWnd);
}
break;