diff options
Diffstat (limited to 'src/atimach64render.c')
-rw-r--r-- | src/atimach64render.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/atimach64render.c b/src/atimach64render.c index 1e9485e..4862cd4 100644 --- a/src/atimach64render.c +++ b/src/atimach64render.c @@ -583,7 +583,7 @@ Mach64BlendCntl(Mach64ContextRegs3D *m3d, int op) static Bool Mach64PrepareTexture(PicturePtr pPict, PixmapPtr pPix) { - ScrnInfoPtr pScreenInfo = xf86Screens[pPix->drawable.pScreen->myNum]; + ScrnInfoPtr pScreenInfo = xf86ScreenToScrn(pPix->drawable.pScreen); ATIPtr pATI = ATIPTR(pScreenInfo); Mach64ContextRegs3D *m3d = &pATI->m3d; @@ -671,7 +671,7 @@ Mach64PrepareComposite PixmapPtr pDst ) { - ScrnInfoPtr pScreenInfo = xf86Screens[pDst->drawable.pScreen->myNum]; + ScrnInfoPtr pScreenInfo = xf86ScreenToScrn(pDst->drawable.pScreen); ATIPtr pATI = ATIPTR(pScreenInfo); Mach64ContextRegs3D *m3d = &pATI->m3d; @@ -818,7 +818,7 @@ Mach64Composite int h ) { - ScrnInfoPtr pScreenInfo = xf86Screens[pDst->drawable.pScreen->myNum]; + ScrnInfoPtr pScreenInfo = xf86ScreenToScrn(pDst->drawable.pScreen); ATIPtr pATI = ATIPTR(pScreenInfo); Mach64ContextRegs3D *m3d = &pATI->m3d; @@ -895,7 +895,7 @@ Mach64Composite void Mach64DoneComposite(PixmapPtr pDst) { - ScrnInfoPtr pScreenInfo = xf86Screens[pDst->drawable.pScreen->myNum]; + ScrnInfoPtr pScreenInfo = xf86ScreenToScrn(pDst->drawable.pScreen); ATIPtr pATI = ATIPTR(pScreenInfo); ATIDRISync(pScreenInfo); |