From 64da9e1de1a68aea3047da7d8107e7f4b7d95791 Mon Sep 17 00:00:00 2001 From: Keith Packard <keithp@koto.keithp.com> 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/randr/rrinfo.c b/randr/rrinfo.c index 8b0c93d..7e77d39 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]; -- 1.5.2.4