forked from enlightenment/enlightenment
hey e_randr... lets not segv on setting up screen eh?
SVN revision: 67700
This commit is contained in:
parent
6c3a3258f1
commit
60fea9433f
|
@ -1600,12 +1600,15 @@ _e_randr_find_matching_crtc(Eina_List *crtcs, E_Randr_Serialized_Crtc *sc)
|
||||||
EINA_LIST_FOREACH (sc->possible_outputs_names, s_name_iter, s_output_name)
|
EINA_LIST_FOREACH (sc->possible_outputs_names, s_name_iter, s_output_name)
|
||||||
{
|
{
|
||||||
EINA_LIST_FOREACH (ci->possible_outputs, p_output_iter, oi)
|
EINA_LIST_FOREACH (ci->possible_outputs, p_output_iter, oi)
|
||||||
|
{
|
||||||
|
if (oi->name)
|
||||||
{
|
{
|
||||||
if (!strncmp(s_output_name, oi->name, oi->name_length))
|
if (!strncmp(s_output_name, oi->name, oi->name_length))
|
||||||
return ci;
|
return ci;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1679,6 +1682,8 @@ _e_randr_restore_12_policies(E_Randr_Screen_Info_12 *si_12)
|
||||||
EINA_LIST_FOREACH(si_12->outputs, iter, output)
|
EINA_LIST_FOREACH(si_12->outputs, iter, output)
|
||||||
{
|
{
|
||||||
EINA_LIST_FOREACH(e_config->randr_serialized_setup->serialized_outputs_policies, iter2, sop)
|
EINA_LIST_FOREACH(e_config->randr_serialized_setup->serialized_outputs_policies, iter2, sop)
|
||||||
|
{
|
||||||
|
if (output->name)
|
||||||
{
|
{
|
||||||
if (strncmp(sop->name, output->name, sop->name_length) == 0)
|
if (strncmp(sop->name, output->name, sop->name_length) == 0)
|
||||||
{
|
{
|
||||||
|
@ -1686,6 +1691,7 @@ _e_randr_restore_12_policies(E_Randr_Screen_Info_12 *si_12)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Eina_Bool
|
Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue