diff options
author | Adam Jackson <ajax@redhat.com> | 2009-03-02 14:26:23 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2009-03-02 14:26:23 -0500 |
commit | 8a6ed44a8b2fc5f14729dc54fec17607ced03859 (patch) | |
tree | c10eec65e5b05280b53a9d147191dcbe70ebc570 | |
parent | 7bfad37f7706da5a76174c0da78dce4d6c6a585b (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index 7226f4fbb..7d6feafb4 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); |