randr: Fix thinko in xf86TargetPreferred
The only-one-output case would only work right if that also happened to be the zeroth output. Oops.
This commit is contained in:
parent
7bfad37f77
commit
8a6ed44a8b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user