diff options
| author | Richard M. Stallman | 1996-06-14 20:54:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-14 20:54:55 +0000 |
| commit | 70204e221dd4e6314f7b1c2366f34d010ed7152e (patch) | |
| tree | 75b1376eecc8e30cf64fe51cea64be8e640b598f | |
| parent | ed000659f9db71ef87860916411453011f527c1f (diff) | |
| download | emacs-70204e221dd4e6314f7b1c2366f34d010ed7152e.tar.gz emacs-70204e221dd4e6314f7b1c2366f34d010ed7152e.zip | |
(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) | |||
| 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 | } |