diff options
author | Keith Packard <keithp@keithp.com> | 2014-04-21 21:38:28 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-04-21 21:39:43 -0700 |
commit | 5df66822c9f6bac1ed3952971958068600ccd095 (patch) | |
tree | 8dee18f49effe3d20545b09e1c36c449fd83e757 | |
parent | 2dcb1672620ef5f16111517e9e7a98cf97deb678 (diff) |
shadowfb: Fix compilation errors
Ok, that's embarassing -- I didn't even make sure Adam's patch
compiled. These are minimal fixes to make it build.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | hw/xfree86/shadowfb/shadow.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/hw/xfree86/shadowfb/shadow.c b/hw/xfree86/shadowfb/shadow.c index 7412213fe..10f72cc99 100644 --- a/hw/xfree86/shadowfb/shadow.c +++ b/hw/xfree86/shadowfb/shadow.c @@ -36,6 +36,7 @@ typedef struct { RefreshAreaFuncPtr preRefresh; RefreshAreaFuncPtr postRefresh; CloseScreenProcPtr CloseScreen; + CreateScreenResourcesProcPtr CreateScreenResources; } ShadowScreenRec, *ShadowScreenPtr; static DevPrivateKeyRec ShadowScreenKeyRec; @@ -43,7 +44,7 @@ static DevPrivateKeyRec ShadowScreenKeyRec; static ShadowScreenPtr shadowfbGetScreenPrivate(ScreenPtr pScreen) { - return dixLookupPrivate(&(pScreen)->devPrivates, &ShadowScreenKeyRec) + return dixLookupPrivate(&(pScreen)->devPrivates, &ShadowScreenKeyRec); } Bool @@ -53,7 +54,6 @@ ShadowFBInit2(ScreenPtr pScreen, { ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); ShadowScreenPtr pPriv; - PictureScreenPtr ps = GetPictureScreenIfSet(pScreen); if (!preRefreshArea && !postRefreshArea) return FALSE; @@ -69,7 +69,6 @@ ShadowFBInit2(ScreenPtr pScreen, pPriv->pScrn = pScrn; pPriv->preRefresh = preRefreshArea; pPriv->postRefresh = postRefreshArea; - pPriv->vtSema = TRUE; pPriv->CloseScreen = pScreen->CloseScreen; pPriv->CreateScreenResources = pScreen->CreateScreenResources; @@ -125,7 +124,7 @@ ShadowCreateScreenResources(ScreenPtr pScreen) ShadowScreenPtr pPriv = shadowfbGetScreenPrivate(pScreen); pScreen->CreateScreenResources = pPriv->CreateScreenResources; - ret = pScreen->CreateScreenResources(pWin); + ret = pScreen->CreateScreenResources(pScreen); pPriv->CreateScreenResources = pScreen->CreateScreenResources; pScreen->CreateScreenResources = ShadowCreateScreenResources; @@ -162,7 +161,7 @@ ShadowCloseScreen(ScreenPtr pScreen) pScreen->CloseScreen = pPriv->CloseScreen; pScreen->CreateScreenResources = pPriv->CreateScreenResources; - free((pointer) pPriv); + free(pPriv); return (*pScreen->CloseScreen) (pScreen); } |