diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-06 09:23:31 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-06 09:24:12 +0100 |
commit | 7b6dcc4d5768cc8d17a1f664155ebdc8ca8c042e (patch) | |
tree | 574af706343180d0cf5cea108d44cf4948b2e533 /src/mga_storm.c | |
parent | 0cb8ba6dc5e7bf4179174f9f17e211df7d89bd41 (diff) |
mga: port to new compat API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mga_storm.c')
-rw-r--r-- | src/mga_storm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mga_storm.c b/src/mga_storm.c index a0189a6..c32caf4 100644 --- a/src/mga_storm.c +++ b/src/mga_storm.c @@ -573,7 +573,7 @@ MGASubsequentCPUToScreenTexture ( Bool mgaAccelInit( ScreenPtr pScreen ) { XAAInfoRecPtr infoPtr; - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); MGAPtr pMga = MGAPTR(pScrn); int maxFastBlitMem, maxlines; Bool doRender = FALSE; @@ -2337,7 +2337,7 @@ MGAValidatePolyArc( unsigned long changes, DrawablePtr pDraw ){ - ScrnInfoPtr pScrn = xf86Screens[pGC->pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pGC->pScreen); MGAPtr pMga = MGAPTR(pScrn); Bool fullPlanemask = TRUE; @@ -2424,7 +2424,7 @@ MGAValidatePolyPoint( unsigned long changes, DrawablePtr pDraw ){ - ScrnInfoPtr pScrn = xf86Screens[pGC->pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pGC->pScreen); MGAPtr pMga = MGAPTR(pScrn); Bool fullPlanemask = TRUE; |