summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@koto.keithp.com>2007-08-08 12:16:12 -0700
committerKeith Packard <keithp@koto.keithp.com>2007-08-08 12:16:32 -0700
commitb2dcfbca2441ca8c561f86a78a76ab59ecbb40e4 (patch)
tree0477875f08fecab973b79c05694be3716b969882
parentab3f601149e15789edfb7c9a0c33387070279582 (diff)
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).
-rw-r--r--randr/rrinfo.c2
1 files changed, 1 insertions, 1 deletions
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];