mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 20:40:04 +01:00
RRScanOldConfig cannot use RRFirstOutput before output is configured.
RRFirstOutput returns the first active output, which won't be set until after RRScanOldConfig is finished running. Instead, just use the first output (which is the only output present with an old driver, after all).
This commit is contained in:
parent
ab3f601149
commit
b2dcfbca24
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ RRScanOldConfig (ScreenPtr pScreen, Rotation rotations)
|
|||
#endif
|
||||
}
|
||||
|
||||
output = RRFirstOutput (pScreen);
|
||||
output = pScrPriv->outputs[0];
|
||||
if (!output)
|
||||
return;
|
||||
crtc = pScrPriv->crtcs[0];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue