diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2019-05-29 12:37:43 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2019-05-29 12:42:18 -0500 |
commit | 0ec6917c5c919e81b4e2444608f15da13ab00b7a (patch) | |
tree | f6a6afbec1761c85502ea4c5b4203494c1db056d | |
parent | bfc24e21a925216749792cf39eff405bc6a15210 (diff) |
Use own thunk function instead of shadowUpdatePackedWeak
Code change made to X.Org X Server 1.20 discontinued
shadowUpdatePackedWeak function.
https://gitlab.freedesktop.org/xorg/xserver/commit
/a530dc2a62349d922de77a75786a3795102aec11
This commit is based on the following xorg/xserver commit.
https://gitlab.freedesktop.org/xorg/xserver/commit
/042bae0b49f6192ec3cb8bb51423c90c44638134
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r-- | src/via_driver.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/via_driver.c b/src/via_driver.c index 8d54f63..645c979 100644 --- a/src/via_driver.c +++ b/src/via_driver.c @@ -1662,6 +1662,12 @@ LoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices, } } +static void +viaUpdatePacked(ScreenPtr pScreen, shadowBufPtr pBuf) +{ + shadowUpdatePacked(pScreen, pBuf); +} + static void * viaShadowWindow(ScreenPtr pScreen, CARD32 row, CARD32 offset, int mode, CARD32 *size, void *closure) @@ -1707,7 +1713,7 @@ VIACreateScreenResources(ScreenPtr pScreen) return FALSE; if (pVia->shadowFB) { - if (!shadowAdd(pScreen, rootPixmap, shadowUpdatePacked, + if (!shadowAdd(pScreen, rootPixmap, viaUpdatePacked, viaShadowWindow, 0, NULL)) return FALSE; } |