diff options
author | Keith Packard <keithp@koto.keithp.com> | 2007-08-08 12:16:12 -0700 |
---|---|---|
committer | Keith Packard <keithp@koto.keithp.com> | 2007-08-08 12:16:32 -0700 |
commit | b2dcfbca2441ca8c561f86a78a76ab59ecbb40e4 (patch) | |
tree | 0477875f08fecab973b79c05694be3716b969882 | |
parent | ab3f601149e15789edfb7c9a0c33387070279582 (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.c | 2 |
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]; |