check randrp has been initialized
This commit is contained in:
parent
2828d92c6c
commit
697f64a22a
|
@ -320,12 +320,12 @@ xf86RandRCloseScreen (int index, ScreenPtr pScreen)
|
||||||
Rotation
|
Rotation
|
||||||
xf86GetRotation(ScreenPtr pScreen)
|
xf86GetRotation(ScreenPtr pScreen)
|
||||||
{
|
{
|
||||||
XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen);
|
XF86RandRInfoPtr randrp;
|
||||||
|
|
||||||
if (xf86RandRIndex == -1)
|
if (xf86RandRIndex == -1)
|
||||||
return RR_Rotate_0;
|
return RR_Rotate_0;
|
||||||
|
|
||||||
return randrp->rotation;
|
return XF86RANDRInfo(pScreen)->rotation;
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
|
|
Loading…
Reference in New Issue
Block a user