summaryrefslogtreecommitdiff
path: root/src/nv_driver.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-05-16 15:49:30 +0100
committerDave Airlie <airlied@redhat.com>2012-05-16 15:49:30 +0100
commit5ce9342f5abfc34e0f1e13e0be8d2c3d4888422f (patch)
treede7fe114de83c0976a255d12fc427559b1ffdb61 /src/nv_driver.c
parent1c8eb7da72f1d272aa5eb6f549d9a5eef6e40df4 (diff)
downloadxorg-driver-xf86-video-nouveau-5ce9342f5abfc34e0f1e13e0be8d2c3d4888422f.tar.gz
nouveau: convert to new screen conversion APIsscreen-conv-api
The compat header takes care of the old server vs new server. this commit was autogenerated from util/modular/x-driver-screen-scrn-conv.sh Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r--src/nv_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 9f6d75f..98486f8 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -404,7 +404,7 @@ NVBlockHandler (
static Bool
NVCreateScreenResources(ScreenPtr pScreen)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
NVPtr pNv = NVPTR(pScrn);
PixmapPtr ppix;
@@ -1061,7 +1061,7 @@ NVLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
static Bool
NVScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
NVPtr pNv = NVPTR(pScrn);
int ret;
VisualPtr visual;