Cygwin/X: Use winUpdateFBPointer() in winshaddd.c rather than duplicating it inline
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Tested-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
8385c426f8
commit
8b22f83113
|
@ -695,22 +695,7 @@ winShadowUpdateDD (ScreenPtr pScreen,
|
||||||
"%s file to " BUILDERADDR "\n", g_pszLogFile);
|
"%s file to " BUILDERADDR "\n", g_pszLogFile);
|
||||||
|
|
||||||
/* Location of shadow framebuffer has changed */
|
/* Location of shadow framebuffer has changed */
|
||||||
pScreenInfo->pfb = pScreenPriv->pddsdShadow->lpSurface;
|
winUpdateFBPointer(pScreen, pScreenPriv->pddsdShadow->lpSurface);
|
||||||
|
|
||||||
/* Update the screen pixmap */
|
|
||||||
if (!(*pScreen->ModifyPixmapHeader)(pScreen->devPrivate,
|
|
||||||
pScreen->width,
|
|
||||||
pScreen->height,
|
|
||||||
pScreen->rootDepth,
|
|
||||||
BitsPerPixel (pScreen->rootDepth),
|
|
||||||
PixmapBytePad (pScreenInfo->dwStride,
|
|
||||||
pScreenInfo->dwBPP),
|
|
||||||
pScreenInfo->pfb))
|
|
||||||
{
|
|
||||||
ErrorF ("winShadowUpdateDD - Bits changed, could not "
|
|
||||||
"notify fb.\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue