devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=a0e993f59b3ffb9c5cbc25e6c8705c264fe52221

commit a0e993f59b3ffb9c5cbc25e6c8705c264fe52221
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Mon Oct 14 13:35:28 2013 +0100

    Finally fix odd TV resolution cloning
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/bin/e_randr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c
index 0b65a28..725046e 100644
--- a/src/bin/e_randr.c
+++ b/src/bin/e_randr.c
@@ -929,7 +929,7 @@ _e_randr_event_cb_output_change(void *data EINA_UNUSED, int 
type EINA_UNUSED, vo
                                    {
                                       /* trap for dumb non-standard TV 
                                        * resolution of 1360 x 768 */
-                                      if (((cw + 6) == mw) && (ch == mh))
+                                      if ((abs(cw - mw) <= 10) && (ch == mh))
                                         {
                                            mode = modes[c];
                                            break;
@@ -950,6 +950,7 @@ _e_randr_event_cb_output_change(void *data EINA_UNUSED, int 
type EINA_UNUSED, vo
                            Eina_List *o;
                            E_Randr_Output_Config *out;
 
+                            c = 0;
                            couts = malloc(ocount * 
sizeof(Ecore_X_Randr_Output));
                            EINA_LIST_FOREACH(crtc_cfg->outputs, o, out)
                              {

-- 


Reply via email to