Skip to content

Commit

Permalink
Merge pull request #4 from grembo/master
Browse files Browse the repository at this point in the history
Fix loading the driver when compiled for xorg 1.20.7
  • Loading branch information
rayddteam authored Feb 24, 2020
2 parents 06c23cc + 080491f commit bac5e21
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/scfb_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,18 @@ ScfbPreInit(ScrnInfoPtr pScrn, int flags)
return TRUE;
}

static void
scfbUpdateRotatePacked(ScreenPtr pScreen, shadowBufPtr pBuf)
{
shadowUpdateRotatePacked(pScreen, pBuf);
}

static void
scfbUpdatePacked(ScreenPtr pScreen, shadowBufPtr pBuf)
{
shadowUpdatePacked(pScreen, pBuf);
}

static Bool
ScfbCreateScreenResources(ScreenPtr pScreen)
{
Expand All @@ -602,7 +614,7 @@ ScfbCreateScreenResources(ScreenPtr pScreen)
pPixmap = pScreen->GetScreenPixmap(pScreen);

if (!shadowAdd(pScreen, pPixmap, fPtr->rotate ?
shadowUpdateRotatePackedWeak() : shadowUpdatePackedWeak(),
scfbUpdateRotatePacked : scfbUpdatePacked,
ScfbWindowLinear, fPtr->rotate, NULL)) {
return FALSE;
}
Expand Down

0 comments on commit bac5e21

Please sign in to comment.