diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-06-14 20:54:55 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-06-14 20:54:55 +0000 |
commit | c0898685097806e84a034a7411c23360e475263d (patch) | |
tree | 06b288b7b6ae3e9da418fe9e2a57ba540a33da64 | |
parent | 72cdfeda13f5a3d46227471b2ea6766414c784ad (diff) | |
download | emacs-c0898685097806e84a034a7411c23360e475263d.tar.gz |
(w32_read_socket): Erase update rect on WM_PAINT, so
no need to process WM_ERASEBKGND.
-rw-r--r-- | src/w32term.c | 7 |
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) { switch (msg.msg.message) { +#if 0 case WM_ERASEBKGND: f = x_window_to_frame (dpyinfo, msg.msg.hwnd); if (f) @@ -2401,6 +2402,7 @@ w32_read_socket (sd, bufp, numchars, waitp, expected) win32_clear_rect (f, NULL, &msg.rect); } break; +#endif case WM_PAINT: { f = x_window_to_frame (dpyinfo, msg.msg.hwnd); @@ -2415,12 +2417,15 @@ w32_read_socket (sd, bufp, numchars, waitp, expected) } else { + /* WM_ERASEBKGND is only generated (and processed) + in response to WM_PAINT, so emulate that + behaviour here. */ + win32_clear_rect (f, NULL, &msg.rect); dumprectangle (f, msg.rect.left, msg.rect.top, msg.rect.right-msg.rect.left+1, msg.rect.bottom-msg.rect.top+1); - } } } |