mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-06 04:38:08 +02:00
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.
This commit is contained in:
parent
53a84d75c6
commit
21248705bb
1 changed files with 1 additions and 0 deletions
|
|
@ -1854,6 +1854,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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue