mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-19 18:20:43 +02:00
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
(cherry picked from commit faf7dfa099)
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
bc95f29441
commit
7cd596e0dd
1 changed files with 4 additions and 2 deletions
|
|
@ -752,8 +752,8 @@ _X_EXPORT Bool
|
|||
xf86RandR12CreateScreenResources (ScreenPtr pScreen)
|
||||
{
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
|
||||
XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen);
|
||||
xf86CrtcConfigPtr config;
|
||||
XF86RandRInfoPtr randrp;
|
||||
int c;
|
||||
int width, height;
|
||||
int mmWidth, mmHeight;
|
||||
|
|
@ -763,6 +763,8 @@ xf86RandR12CreateScreenResources (ScreenPtr pScreen)
|
|||
return TRUE;
|
||||
#endif
|
||||
|
||||
config = XF86_CRTC_CONFIG_PTR(pScrn);
|
||||
randrp = XF86RANDRINFO(pScreen);
|
||||
/*
|
||||
* Compute size of screen
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue