Use own thunk function instead of shadowUpdatePackedWeak
I plan to remove the Weak functions from a future server. Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
219ce9e6c3
commit
042bae0b49
|
@ -810,6 +810,12 @@ msShadowWindow(ScreenPtr screen, CARD32 row, CARD32 offset, int mode,
|
|||
return ((uint8_t *)ms->drmmode.front_bo->ptr + row * stride + offset);
|
||||
}
|
||||
|
||||
static void
|
||||
msUpdatePacked(ScreenPtr pScreen, shadowBufPtr pBuf)
|
||||
{
|
||||
shadowUpdatePacked(pScreen, pBuf);
|
||||
}
|
||||
|
||||
static Bool
|
||||
CreateScreenResources(ScreenPtr pScreen)
|
||||
{
|
||||
|
@ -842,7 +848,7 @@ CreateScreenResources(ScreenPtr pScreen)
|
|||
FatalError("Couldn't adjust screen pixmap\n");
|
||||
|
||||
if (ms->drmmode.shadow_enable) {
|
||||
if (!shadowAdd(pScreen, rootPixmap, shadowUpdatePackedWeak(),
|
||||
if (!shadowAdd(pScreen, rootPixmap, msUpdatePacked,
|
||||
msShadowWindow, 0, 0))
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user