Actually, use the real rate value from the mode. This allows similar

modes with the same rate to correctly select the proper radio.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77642
This commit is contained in:
Christopher Michael 2012-10-09 12:15:09 +00:00 committed by Christopher Michael
parent f03090fb12
commit 23e171b7b7
1 changed files with 4 additions and 2 deletions

View File

@ -199,7 +199,9 @@ e_smart_monitor_crtc_set(Evas_Object *obj, E_Randr_Crtc_Info *crtc)
sd->orientation = crtc->current_orientation;
sd->rotation = _e_smart_monitor_rotation_get(sd->orientation);
sd->mode = crtc->current_mode;
sd->rate = sd->mode->xid;
sd->rate = ((float)sd->mode->dotClock /
((float)sd->mode->hTotal * (float)sd->mode->vTotal));
EINA_LIST_FOREACH(crtc->outputs, l, output)
{
@ -1274,7 +1276,7 @@ _e_smart_monitor_refresh_rates_refill(Evas_Object *obj)
snprintf(buff, sizeof(buff), "%.1fHz", rate);
ow = e_widget_radio_add(evas, buff, mode->xid, rg);
ow = e_widget_radio_add(evas, buff, abs((int)rate), rg);
e_widget_list_object_append(sd->o_refresh, ow, 1, 0, 0.5);
}
}