diff options
Diffstat (limited to 'src/nv_video.c')
-rw-r--r-- | src/nv_video.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nv_video.c b/src/nv_video.c index ad267bf..52d651b 100644 --- a/src/nv_video.c +++ b/src/nv_video.c @@ -239,7 +239,7 @@ NVAllocateOverlayMemory( xf86FreeOffscreenLinear(linear); } - pScreen = screenInfo.screens[pScrn->scrnIndex]; + pScreen = xf86ScrnToScreen(pScrn); new_linear = xf86AllocateOffscreenLinear(pScreen, size, 32, NULL, NULL, NULL); @@ -287,7 +287,7 @@ static void NVFreeBlitMemory(ScrnInfoPtr pScrnInfo) void NVInitVideo (ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); XF86VideoAdaptorPtr *adaptors, *newAdaptors = NULL; XF86VideoAdaptorPtr overlayAdaptor = NULL; XF86VideoAdaptorPtr blitAdaptor = NULL; @@ -343,7 +343,7 @@ void NVInitVideo (ScreenPtr pScreen) static XF86VideoAdaptorPtr NVSetupBlitVideo (ScreenPtr pScreen) { - ScrnInfoPtr pScrnInfo = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrnInfo = xf86ScreenToScrn(pScreen); NVPtr pNv = NVPTR(pScrnInfo); XF86VideoAdaptorPtr adapt; NVPortPrivPtr pPriv; @@ -406,7 +406,7 @@ NVSetupBlitVideo (ScreenPtr pScreen) static XF86VideoAdaptorPtr NVSetupOverlayVideo (ScreenPtr pScreen) { - ScrnInfoPtr pScrnInfo = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrnInfo = xf86ScreenToScrn(pScreen); NVPtr pNv = NVPTR(pScrnInfo); XF86VideoAdaptorPtr adapt; NVPortPrivPtr pPriv; |