Finally fix odd TV resolution cloning

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-10-14 13:35:28 +01:00
parent 07fa7e4a13
commit a0e993f59b
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{