aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32term.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 350e07675af..e0f840999a0 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2394,6 +2394,7 @@ w32_read_socket (sd, bufp, numchars, waitp, expected)
2394 { 2394 {
2395 switch (msg.msg.message) 2395 switch (msg.msg.message)
2396 { 2396 {
2397#if 0
2397 case WM_ERASEBKGND: 2398 case WM_ERASEBKGND:
2398 f = x_window_to_frame (dpyinfo, msg.msg.hwnd); 2399 f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
2399 if (f) 2400 if (f)
@@ -2401,6 +2402,7 @@ w32_read_socket (sd, bufp, numchars, waitp, expected)
2401 win32_clear_rect (f, NULL, &msg.rect); 2402 win32_clear_rect (f, NULL, &msg.rect);
2402 } 2403 }
2403 break; 2404 break;
2405#endif
2404 case WM_PAINT: 2406 case WM_PAINT:
2405 { 2407 {
2406 f = x_window_to_frame (dpyinfo, msg.msg.hwnd); 2408 f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
@@ -2415,12 +2417,15 @@ w32_read_socket (sd, bufp, numchars, waitp, expected)
2415 } 2417 }
2416 else 2418 else
2417 { 2419 {
2420 /* WM_ERASEBKGND is only generated (and processed)
2421 in response to WM_PAINT, so emulate that
2422 behaviour here. */
2423 win32_clear_rect (f, NULL, &msg.rect);
2418 dumprectangle (f, 2424 dumprectangle (f,
2419 msg.rect.left, 2425 msg.rect.left,
2420 msg.rect.top, 2426 msg.rect.top,
2421 msg.rect.right-msg.rect.left+1, 2427 msg.rect.right-msg.rect.left+1,
2422 msg.rect.bottom-msg.rect.top+1); 2428 msg.rect.bottom-msg.rect.top+1);
2423
2424 } 2429 }
2425 } 2430 }
2426 } 2431 }