diff options
author | Dave Airlie <airlied@redhat.com> | 2008-06-12 14:54:56 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-06-12 14:55:16 +1000 |
commit | c37a93b4850866c713e3cbf39a08bbc9645e24d4 (patch) | |
tree | 32db161cd81d623832263643a25bbb18e5d38f6b | |
parent | 23e71ef71a178505494d4b410f9314acfff81524 (diff) |
modes: make aspect choosing work on single output case.
In the single output enabled case we never enter the loop and test
never gets set and so we fail to match a good mode.
This was causing my 2560x1600 to end up at 2048x1536.
-rw-r--r-- | hw/xfree86/modes/xf86Crtc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index 7edd23c5f..fd72053c7 100644 --- a/hw/xfree86/modes/xf86Crtc.c +++ b/hw/xfree86/modes/xf86Crtc.c @@ -1864,6 +1864,7 @@ bestModeForAspect(xf86CrtcConfigPtr config, Bool *enabled, float aspect) nextEnabledOutput(config, enabled, &o); while ((mode = nextAspectMode(config->output[o], mode, aspect))) { + test = mode; for (p = o; nextEnabledOutput(config, enabled, &p); ) { test = xf86OutputFindClosestMode(config->output[p], mode); if (!test) |