else if (prof == TIZEN_PROFILE_WEARABLE)
{
profile_factor = 0.4;
- scale = floor((double)dpi * profile_factor / 90.0 * 10 + 0.5) / 10;
+ //TIZEN_ONLY(20190514): Fix calculation scale for wearable-circle. (MPR-1371)
+ //scale = floor((double)dpi * profile_factor / 90.0 * 10 + 0.5) / 10;
+ double wearable_circle_var = 3.25;
+ ecore_wl2_display_screen_size_get(wldp, &w, &h);
+ inch = floor(sqrt((w * w) + (h * h)) / dpi * 10 + 0.5) / 10;
+ scale = floor((double)w * profile_factor * wearable_circle_var / 360 * 10 + 0.5) / 10;
+ printf("[efl-config][%s] w: %d, h: %d, dpi: %d, inch: %f, profile_factor: %f\n", __FUNCTION__, w, h, dpi, inch, profile_factor);
+ //
}
else /* prof == TIZEN_PROFILE_TV */
{
}
saved_scale = elm_config_scale_get();
+ //TIZEN_ONLY(20190514): log for scale
+ printf("[efl-config][%s] saved_scale: %f, scale: %f\n", __FUNCTION__, saved_scale, scale);
+ //
if (scale != saved_scale && !getenv("ELM_SCALE"))
{