mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 13:28:07 +02:00
compositor-drm: select the highest possible mode frequency
the mode list is ordered so that the lower frequencies come before the higher ones, so traverse the list from the end to the beginning
This commit is contained in:
parent
8418c298af
commit
c0b9487937
1 changed files with 1 additions and 1 deletions
|
|
@ -1836,7 +1836,7 @@ create_output_for_connector(struct drm_compositor *ec,
|
|||
current = NULL;
|
||||
configured = NULL;
|
||||
|
||||
wl_list_for_each(drm_mode, &output->base.mode_list, base.link) {
|
||||
wl_list_for_each_reverse(drm_mode, &output->base.mode_list, base.link) {
|
||||
if (config == OUTPUT_CONFIG_MODE &&
|
||||
width == drm_mode->base.width &&
|
||||
height == drm_mode->base.height)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue