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:
Keith Packard 2007-08-08 12:16:12 -07:00
commit b2dcfbca24

View file

@ -104,7 +104,7 @@ RRScanOldConfig (ScreenPtr pScreen, Rotation rotations)
#endif
}
output = RRFirstOutput (pScreen);
output = pScrPriv->outputs[0];
if (!output)
return;
crtc = pScrPriv->crtcs[0];