From b2dcfbca2441ca8c561f86a78a76ab59ecbb40e4 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 8 Aug 2007 12:16:12 -0700 Subject: [PATCH] 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). --- randr/rrinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randr/rrinfo.c b/randr/rrinfo.c index 8b0c93dd9..7e77d393d 100644 --- a/randr/rrinfo.c +++ b/randr/rrinfo.c @@ -104,7 +104,7 @@ RRScanOldConfig (ScreenPtr pScreen, Rotation rotations) #endif } - output = RRFirstOutput (pScreen); + output = pScrPriv->outputs[0]; if (!output) return; crtc = pScrPriv->crtcs[0];