{
switch (msg.msg.message)
{
+#if 0
case WM_ERASEBKGND:
f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
if (f)
win32_clear_rect (f, NULL, &msg.rect);
}
break;
+#endif
case WM_PAINT:
{
f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
}
else
{
+ /* WM_ERASEBKGND is only generated (and processed)
+ in response to WM_PAINT, so emulate that
+ behaviour here. */
+ win32_clear_rect (f, NULL, &msg.rect);
dumprectangle (f,
msg.rect.left,
msg.rect.top,
msg.rect.right-msg.rect.left+1,
msg.rect.bottom-msg.rect.top+1);
-
}
}
}