Commit ed000659 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(win32_wnd_proc): No need to forward WM_ERASEBKGND to main thread.

parent 2d1214b8
......@@ -2930,10 +2930,15 @@ win32_wnd_proc (hwnd, msg, wParam, lParam)
switch (msg)
/* 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);
return 1;
/* ignore our own changes */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment