forked from enlightenment/enlightenment
E (RandR): Make sure we have hTotal and vTotal from the mode before
trying to calculate refresh rate. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 77743
This commit is contained in:
parent
5e4ccca27b
commit
fed73888f6
|
@ -203,8 +203,9 @@ e_smart_monitor_crtc_set(Evas_Object *obj, E_Randr_Crtc_Info *crtc)
|
||||||
sd->rotation = _e_smart_monitor_rotation_get(sd->orientation);
|
sd->rotation = _e_smart_monitor_rotation_get(sd->orientation);
|
||||||
sd->mode = crtc->current_mode;
|
sd->mode = crtc->current_mode;
|
||||||
|
|
||||||
sd->rate = (int)((float)sd->mode->dotClock /
|
if ((sd->mode->hTotal) && (sd->mode->vTotal))
|
||||||
((float)sd->mode->hTotal * (float)sd->mode->vTotal));
|
sd->rate = (int)((float)sd->mode->dotClock /
|
||||||
|
((float)sd->mode->hTotal * (float)sd->mode->vTotal));
|
||||||
|
|
||||||
EINA_LIST_FOREACH(crtc->outputs, l, output)
|
EINA_LIST_FOREACH(crtc->outputs, l, output)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue