summaryrefslogtreecommitdiff
path: root/src/intel_hwmc.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-05-16 15:26:55 +0100
committerDave Airlie <airlied@redhat.com>2012-05-23 11:02:20 +0100
commit43a34186d13d29c671431832469ca5301751b3cf (patch)
tree8ff14d5420c3ce91bc0322a4c21ab9d03fa95f3c /src/intel_hwmc.c
parent9aabc04d76fa976abb4a74f4e9676c7556e88df3 (diff)
intel: convert to new screen conversion APIs
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/intel_hwmc.c')
-rw-r--r--src/intel_hwmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel_hwmc.c b/src/intel_hwmc.c
index d6267256..af8bd813 100644
--- a/src/intel_hwmc.c
+++ b/src/intel_hwmc.c
@@ -189,7 +189,7 @@ static XF86MCSurfaceInfoPtr surface_info_vld[] = {
/* check chip type and load xvmc driver */
Bool intel_xvmc_adaptor_init(ScreenPtr pScreen)
{
- ScrnInfoPtr scrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr scrn = xf86ScreenToScrn(pScreen);
intel_screen_private *intel = intel_get_screen_private(scrn);
static XF86MCAdaptorRec *pAdapt;
char *name;