summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2005-10-11 14:50:03 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2005-10-11 14:50:03 +0000
commit697f64a22ac5a7742a0022605a1074351296d4f8 (patch)
tree6ed6eba489e123be9d6195a93de2ecefc8419dd9
parent2828d92c6ca400b603b6a20a221d9c858732292f (diff)
check randrp has been initialized
-rw-r--r--hw/xfree86/common/xf86RandR.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c
index da8be9bd3..bd39d2c5e 100644
--- a/hw/xfree86/common/xf86RandR.c
+++ b/hw/xfree86/common/xf86RandR.c
@@ -320,12 +320,12 @@ xf86RandRCloseScreen (int index, ScreenPtr pScreen)
Rotation
xf86GetRotation(ScreenPtr pScreen)
{
- XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen);
+ XF86RandRInfoPtr randrp;
if (xf86RandRIndex == -1)
return RR_Rotate_0;
- return randrp->rotation;
+ return XF86RANDRInfo(pScreen)->rotation;
}
Bool