summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
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/sna/sna.h
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/sna/sna.h')
-rw-r--r--src/sna/sna.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 6c6650b1..7a01ee76 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -332,7 +332,7 @@ to_sna(ScrnInfoPtr scrn)
constant static inline struct sna *
to_sna_from_screen(ScreenPtr screen)
{
- return to_sna(xf86Screens[screen->myNum]);
+ return to_sna(xf86ScreenToScrn(screen));
}
constant static inline struct sna *