projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8418c29
)
compositor-drm: select the highest possible mode frequency
author
Giulio Camuffo
<giuliocamuffo@gmail.com>
Wed, 19 Jun 2013 13:19:19 +0000
(15:19 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 20 Jun 2013 19:22:35 +0000
(15:22 -0400)
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
src/compositor-drm.c
patch
|
blob
|
history
diff --git
a/src/compositor-drm.c
b/src/compositor-drm.c
index
8787723
..
c4f9cf6
100644
(file)
--- a/
src/compositor-drm.c
+++ b/
src/compositor-drm.c
@@
-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)