check randrp has been initialized

This commit is contained in:
Alan Hourihane 2005-10-11 14:50:03 +00:00
parent 2828d92c6c
commit 697f64a22a

View File

@ -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