summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-03-02 14:26:23 -0500
committerKeith Packard <keithp@keithp.com>2009-03-20 16:58:06 -0700
commit667865b9eb98ed73461028b3d38be19619712533 (patch)
tree9519e8417e14dc93161ae7cd8615c1a68270c6b9 /hw
parentf469726fec502ce29999eda6919c3c3d26c127d8 (diff)
randr: Fix thinko in xf86TargetPreferred
The only-one-output case would only work right if that also happened to be the zeroth output. Oops. (cherry picked from commit 8a6ed44a8b2fc5f14729dc54fec17607ced03859)
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/modes/xf86Crtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index f09b9b895..1c2ee499e 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -2061,9 +2061,9 @@ xf86TargetPreferred(ScrnInfoPtr scrn, xf86CrtcConfigPtr config,
(float)config->output[p]->mm_height;
if (aspect)
- preferred_match[0] = bestModeForAspect(config, enabled, aspect);
+ preferred_match[p] = bestModeForAspect(config, enabled, aspect);
- if (preferred_match[0])
+ if (preferred_match[p])
ret = TRUE;
} while (0);