summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-03-02 19:26:23 (GMT)
committerAdam Jackson <ajax@redhat.com>2009-03-02 19:26:23 (GMT)
commit8a6ed44a8b2fc5f14729dc54fec17607ced03859 (patch)
treec10eec65e5b05280b53a9d147191dcbe70ebc570
parent7bfad37f7706da5a76174c0da78dce4d6c6a585b (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.
-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 7226f4f..7d6feaf 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -2085,9 +2085,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);