summaryrefslogtreecommitdiff
path: root/src/riva_cursor.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-07 15:52:16 +0100
committerDave Airlie <airlied@redhat.com>2012-06-07 15:52:16 +0100
commit713e9501b87465cf2a62c27605b6fc4a454dad95 (patch)
tree0be6ee6ba5f01ad4f16c4c798a69992b36047186 /src/riva_cursor.c
parentb3d61828837661c9b383378a7d6006752659108b (diff)
nv: port to new compat API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/riva_cursor.c')
-rw-r--r--src/riva_cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/riva_cursor.c b/src/riva_cursor.c
index a9c614e..f8dcae1 100644
--- a/src/riva_cursor.c
+++ b/src/riva_cursor.c
@@ -144,7 +144,7 @@ RivaUseHWCursor(ScreenPtr pScreen, CursorPtr pCurs)
Bool
RivaCursorInit(ScreenPtr pScreen)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
RivaPtr pRiva = RivaPTR(pScrn);
xf86CursorInfoPtr infoPtr;