diff options
author | Dave Airlie <airlied@redhat.com> | 2012-07-17 14:53:30 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-07-17 14:53:30 +1000 |
commit | 4b4b8e9c047bd34c516ca8ab2b15fd1c541d05d5 (patch) | |
tree | 74fb24dfaa12b90a4ffce5ccf4dde9c982d850a1 /src/smi_video.c | |
parent | 1aad7b44e3e141bd8d3e589b7cd410e791050bd0 (diff) |
smi: convert to new X server screen conversion apis.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/smi_video.c')
-rw-r--r-- | src/smi_video.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/smi_video.c b/src/smi_video.c index 9d8b35f..7900b3e 100644 --- a/src/smi_video.c +++ b/src/smi_video.c @@ -611,7 +611,7 @@ SMI_BuildEncodings(SMI_PortPtr p) void SMI_InitVideo(ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); XF86VideoAdaptorPtr *ptrAdaptors, *newAdaptors = NULL; XF86VideoAdaptorPtr newAdaptor = NULL; int numAdaptors; @@ -814,7 +814,7 @@ SetAttrSAA7111(ScrnInfoPtr pScrn, int i, int value) static XF86VideoAdaptorPtr SMI_SetupVideo(ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); SMIPtr pSmi = SMIPTR(pScrn); SMI_PortPtr smiPortPtr; XF86VideoAdaptorPtr ptrAdaptor; @@ -2150,7 +2150,7 @@ SMI_InitOffscreenImages( ) { XF86OffscreenImagePtr offscreenImages; - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); SMIPtr pSmi = SMIPTR(pScrn); SMI_PortPtr pPort = (SMI_PortPtr) pSmi->ptrAdaptor->pPortPrivates[0].ptr; @@ -2188,7 +2188,7 @@ SMI_InitOffscreenImages( static void SMI_VideoSave(ScreenPtr pScreen, ExaOffscreenArea *area) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); SMIPtr pSmi = SMIPTR(pScrn); SMI_PortPtr pPort = pSmi->ptrAdaptor->pPortPrivates[0].ptr; @@ -2203,7 +2203,7 @@ SMI_VideoSave(ScreenPtr pScreen, ExaOffscreenArea *area) CARD32 SMI_AllocateMemory(ScrnInfoPtr pScrn, void **mem_struct, int size) { - ScreenPtr pScreen = screenInfo.screens[pScrn->scrnIndex]; + ScreenPtr pScreen = xf86ScrnToScreen(pScrn); SMIPtr pSmi = SMIPTR(pScrn); int offset = 0; |