changeset 15434:38d485973e00

(win32_wnd_proc): No need to forward WM_ERASEBKGND to main thread.
author Richard M. Stallman <rms@gnu.org>
date Fri, 14 Jun 1996 20:54:26 +0000
parents 172725d0d2d5
children d18c26cf45f4
files src/w32fns.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Fri Jun 14 19:04:46 1996 +0000
+++ b/src/w32fns.c	Fri Jun 14 20:54:26 1996 +0000
@@ -2930,10 +2930,15 @@
   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 */