devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=4df53f06e35f583c3b84917c883c857bf3f9fb99
commit 4df53f06e35f583c3b84917c883c857bf3f9fb99 Author: Chris Michael <cp.mich...@samsung.com> Date: Mon Oct 14 11:07:24 2013 +0100 Revert "Fix bug when hotplugging a TV where resolution does not match the" This reverts commit a9e09bc26dcde3667c5af512e861c8f076fea917. Breaks build, and does not fix real issue. Revert --- src/bin/e_randr.c | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c index d34c9a4..faf0c96 100644 --- a/src/bin/e_randr.c +++ b/src/bin/e_randr.c @@ -886,21 +886,15 @@ _e_randr_event_cb_output_change(void *data EINA_UNUSED, int type EINA_UNUSED, vo * crtc's mode for cloning * * NB: Hmmm, what to do if it Cannot use this mode ?? */ - - /* get the modes that this output supports */ modes = ecore_x_randr_output_modes_get(ev->win, output_cfg->xid, &num, &pref); - if (modes) { - /* loop the outputs modes */ for (c = 0; c < num; c++) { - if ((modes[c] == mode) && - ((modes[c]->width == mode->width) && - (modes[c]->height == mode->height))) + if (modes[c] == mode) { can_clone = EINA_TRUE; break; @@ -921,35 +915,14 @@ _e_randr_event_cb_output_change(void *data EINA_UNUSED, int type EINA_UNUSED, vo { int cw, ch; - ecore_x_randr_mode_size_get(ev->win, modes[c], + ecore_x_randr_mode_size_get(ev->win, + modes[c], &cw, &ch); if ((cw == mw) && (ch == mh)) { mode = modes[c]; break; } - else - { - /* Grrrr, stupid TVs with their - * non-standard resolution of - * 1360x768 ... need to account for that */ - if (ch == mh) - { - if (cw <= (mw - 6)) - { - mode = modes[c]; - break; - } - } - else if (cw == mw) - { - if (ch <= (mh - 6)) - { - mode = modes[c]; - break; - } - } - } } } --