randr12: looking up these bits if randr isn't initialised is bad.
When xinerama is enabled we don't get randr protocol, but the driver might still want randr internals
This commit is contained in:
parent
efa31092d6
commit
faf7dfa099
|
@ -754,8 +754,8 @@ Bool
|
||||||
xf86RandR12CreateScreenResources (ScreenPtr pScreen)
|
xf86RandR12CreateScreenResources (ScreenPtr pScreen)
|
||||||
{
|
{
|
||||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||||
xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
|
xf86CrtcConfigPtr config;
|
||||||
XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen);
|
XF86RandRInfoPtr randrp;
|
||||||
int c;
|
int c;
|
||||||
int width, height;
|
int width, height;
|
||||||
int mmWidth, mmHeight;
|
int mmWidth, mmHeight;
|
||||||
|
@ -765,6 +765,8 @@ xf86RandR12CreateScreenResources (ScreenPtr pScreen)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
config = XF86_CRTC_CONFIG_PTR(pScrn);
|
||||||
|
randrp = XF86RANDRINFO(pScreen);
|
||||||
/*
|
/*
|
||||||
* Compute size of screen
|
* Compute size of screen
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue