summaryrefslogtreecommitdiff
path: root/src/savage_accel.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-06 11:22:29 +0100
committerDave Airlie <airlied@redhat.com>2012-06-06 11:22:29 +0100
commita2714fb09e1e0badbb3e98e24d4b1ed92003bdb9 (patch)
tree80a4688783ad46e33fc90e8c014f6a32f41e8c42 /src/savage_accel.c
parentde22eab9a21df80fe965dc37d21ba3ac2b9f5fd0 (diff)
savage: port to new compat API
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/savage_accel.c')
-rw-r--r--src/savage_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/savage_accel.c b/src/savage_accel.c
index 0920e22..1bcb5fa 100644
--- a/src/savage_accel.c
+++ b/src/savage_accel.c
@@ -1274,7 +1274,7 @@ void SavageRestoreAccelState(ScrnInfoPtr pScrn)
Bool
SavageInitAccel(ScreenPtr pScreen)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
SavagePtr psav = SAVPTR(pScrn);
#ifdef SAVAGEDRI