summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-14 20:54:26 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-14 20:54:26 +0000
commited000659f9db71ef87860916411453011f527c1f (patch)
treed9a0c29d8186a025a20ef3a910d5f16a13b56c57
parent2d1214b890d349d8ccc974fa836fae97a00e3f50 (diff)
downloademacs-ed000659f9db71ef87860916411453011f527c1f.tar.gz
(win32_wnd_proc): No need to forward WM_ERASEBKGND to main thread.
-rw-r--r--src/w32fns.c5
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)
switch (msg)
{
case WM_ERASEBKGND:
+ /* This is (always?) generated by BeginPaint, so there is no gain
+ in forwarding this message to the main thread - it can simply
+ erase the background before repainting. */
+#if 0
enter_crit ();
GetUpdateRect (hwnd, &wmsg.rect, FALSE);
leave_crit ();
my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
+#endif
return 1;
case WM_PALETTECHANGED:
/* ignore our own changes */