princeamd pushed a commit to branch enlightenment-0.17.
commit 00934e820a30f22bb76f4436b362c1f55348ba73
Author: Chris Michael <[email protected]>
Date: Sun May 19 10:29:10 2013 +0100
Backport: 012a05e :: Modes is a zero-based list, so preferred needs to be
-1.
Signed-off-by: Chris Michael <[email protected]>
Signed-off-by: Deon Thomas <[email protected]>
---
src/bin/e_randr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c
index 9096e4b..fb7bf98 100644
--- a/src/bin/e_randr.c
+++ b/src/bin/e_randr.c
@@ -1034,7 +1034,7 @@
_e_randr_config_output_preferred_mode_get(E_Randr_Output_Config *cfg)
modes = ecore_x_randr_output_modes_get(root, cfg->xid, &n, &p);
if ((!modes) || (n == 0)) return 0;
- mode = modes[p];
+ mode = modes[p - 1];
free(modes);
return mode;
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev