diff options
| author | Richard M. Stallman | 1996-06-14 20:54:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-14 20:54:26 +0000 |
| commit | ed000659f9db71ef87860916411453011f527c1f (patch) | |
| tree | d9a0c29d8186a025a20ef3a910d5f16a13b56c57 /src | |
| parent | 2d1214b890d349d8ccc974fa836fae97a00e3f50 (diff) | |
| download | emacs-ed000659f9db71ef87860916411453011f527c1f.tar.gz emacs-ed000659f9db71ef87860916411453011f527c1f.zip | |
(win32_wnd_proc): No need to forward WM_ERASEBKGND to main thread.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 9385d4da0c6..07001736595 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -2930,10 +2930,15 @@ win32_wnd_proc (hwnd, msg, wParam, lParam) | |||
| 2930 | switch (msg) | 2930 | switch (msg) |
| 2931 | { | 2931 | { |
| 2932 | case WM_ERASEBKGND: | 2932 | case WM_ERASEBKGND: |
| 2933 | /* This is (always?) generated by BeginPaint, so there is no gain | ||
| 2934 | in forwarding this message to the main thread - it can simply | ||
| 2935 | erase the background before repainting. */ | ||
| 2936 | #if 0 | ||
| 2933 | enter_crit (); | 2937 | enter_crit (); |
| 2934 | GetUpdateRect (hwnd, &wmsg.rect, FALSE); | 2938 | GetUpdateRect (hwnd, &wmsg.rect, FALSE); |
| 2935 | leave_crit (); | 2939 | leave_crit (); |
| 2936 | my_post_msg (&wmsg, hwnd, msg, wParam, lParam); | 2940 | my_post_msg (&wmsg, hwnd, msg, wParam, lParam); |
| 2941 | #endif | ||
| 2937 | return 1; | 2942 | return 1; |
| 2938 | case WM_PALETTECHANGED: | 2943 | case WM_PALETTECHANGED: |
| 2939 | /* ignore our own changes */ | 2944 | /* ignore our own changes */ |