Fix for the Root Window 100% CPU bug use lParam in

winRedrawAllProcShadowGDI as indicator which window initiated the call
    since EnumerateThreadWindows is called from WM_PAINT handler too and
    invalidates the fresh painted window right after painting it.
This commit is contained in:
Alexander Gottwald 2004-03-18 15:46:03 +00:00
parent 26b36ab5d5
commit 78cc1a5768

View file

@ -228,6 +228,8 @@ winQueryRGBBitsAndMasks (ScreenPtr pScreen)
BOOL CALLBACK
winRedrawAllProcShadowGDI (HWND hwnd, LPARAM lParam)
{
if (hwnd == (HWND)lParam)
return TRUE;
InvalidateRect (hwnd, NULL, FALSE);
UpdateWindow (hwnd);
return TRUE;
@ -839,7 +841,8 @@ winBltExposedRegionsShadowGDI (ScreenPtr pScreen)
#ifdef XWIN_MULTIWINDOW
/* Redraw all windows */
if (pScreenInfo->fMultiWindow)
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI, 0);
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI,
(LPARAM)pScreenPriv->hwndScreen);
#endif
return TRUE;