diff options
Diffstat (limited to 'src/legacy/i810/i810_accel.c')
-rw-r--r-- | src/legacy/i810/i810_accel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/legacy/i810/i810_accel.c b/src/legacy/i810/i810_accel.c index 6b57dbb1..7120b4ba 100644 --- a/src/legacy/i810/i810_accel.c +++ b/src/legacy/i810/i810_accel.c @@ -69,7 +69,7 @@ Bool I810AccelInit(ScreenPtr pScreen) { XAAInfoRecPtr infoPtr; - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); if (I810_DEBUG & DEBUG_VERBOSE_ACCEL) @@ -215,8 +215,8 @@ I810WaitLpRing(ScrnInfoPtr pScrn, int n, int timeout_millis) ErrorF("space: %d wanted %d\n", ring->space, n); #ifdef HAVE_DRI1 if (pI810->directRenderingEnabled) { - DRIUnlock(screenInfo.screens[pScrn->scrnIndex]); - DRICloseScreen(screenInfo.screens[pScrn->scrnIndex]); + DRIUnlock(xf86ScrnToScreen(pScrn)); + DRICloseScreen(xf86ScrnToScreen(pScrn)); } #endif pI810->AccelInfoRec = NULL; /* Stops recursive behavior */ |