mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user