skip blank randr modes instead of erroring 500 times

SVN revision: 71938
This commit is contained in:
Mike Blumenkrantz 2012-06-11 08:56:05 +00:00
parent f62441abf9
commit b615bf424b
1 changed files with 1 additions and 0 deletions

View File

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