forked from enlightenment/enlightenment
skip blank randr modes instead of erroring 500 times
SVN revision: 71938
This commit is contained in:
parent
f62441abf9
commit
b615bf424b
|
@ -18,6 +18,7 @@ _monitor_modes_refs_set(E_Randr_Monitor_Info *mi, Ecore_X_Randr_Output o)
|
||||||
modes = ecore_x_randr_output_modes_get(e_randr_screen_info.root, o, &nmodes, &npreferred);
|
modes = ecore_x_randr_output_modes_get(e_randr_screen_info.root, o, &nmodes, &npreferred);
|
||||||
while (--nmodes >= 0)
|
while (--nmodes >= 0)
|
||||||
{
|
{
|
||||||
|
if (!modes[nmodes]) continue;
|
||||||
if (!(mode_info = _12_screen_info_mode_info_get(modes[nmodes])))
|
if (!(mode_info = _12_screen_info_mode_info_get(modes[nmodes])))
|
||||||
{
|
{
|
||||||
//Mode unknown to the global structure, so add it
|
//Mode unknown to the global structure, so add it
|
||||||
|
|
Loading…
Reference in New Issue