static const char _transit_key[] = "_elm_transit";
+#define FOCAL 2000
+
struct _Elm_Transit
{
#define ELM_TRANSIT_MAGIC 0xd27f190a
evas_map_smooth_set(map, EINA_TRUE);
evas_map_util_points_populate_from_object_full(map, obj, zoom->from + \
(progress * zoom->to));
- evas_map_util_3d_perspective(map, x + (w / 2), y + (h / 2), 0, 10000);
+ evas_map_util_3d_perspective(map, x + (w / 2), y + (h / 2), 0, FOCAL);
evas_object_map_set(obj, map);
evas_object_map_enable_set(obj, EINA_TRUE);
}
zoom = ELM_NEW(Elm_Fx_Zoom);
if (!zoom) return NULL;
- zoom->from = (10000 - (from_rate * 10000)) * (1 / from_rate);
- zoom->to = ((10000 - (to_rate * 10000)) * (1 / to_rate)) - zoom->from;
+ zoom->from = (FOCAL - (from_rate * FOCAL)) * (1 / from_rate);
+ zoom->to = ((FOCAL - (to_rate * FOCAL)) * (1 / to_rate)) - zoom->from;
return zoom;
evas_map_util_3d_rotate(map, degree,
0, 0, x + half_w, y + half_h, 0);
}
- evas_map_util_3d_perspective(map, x + half_w, y + half_h, 0, 10000);
+ evas_map_util_3d_perspective(map, x + half_w, y + half_h, 0, FOCAL);
evas_object_map_enable_set(front, EINA_TRUE);
evas_object_map_enable_set(back, EINA_TRUE);
evas_object_map_set(obj, map);
0, x + half_w, y + half_h, 0);
}
- evas_map_util_3d_perspective(map, x + half_w, y + half_h, 0, 10000);
+ evas_map_util_3d_perspective(map, x + half_w, y + half_h, 0, FOCAL);
evas_object_map_enable_set(resizable_flip_node->front, EINA_TRUE);
evas_object_map_enable_set(resizable_flip_node->back, EINA_TRUE);
evas_object_map_set(obj, map);
break;
}
- evas_map_util_3d_perspective(map, x + (w / 2), y + (h / 2), 0, 10000);
+ evas_map_util_3d_perspective(map, x + (w / 2), y + (h / 2), 0, FOCAL);
}
static void
break;
}
- evas_map_util_3d_perspective(map, x + (w / 2), y + (h / 2), 0, 10000);
+ evas_map_util_3d_perspective(map, x + (w / 2), y + (h / 2), 0, FOCAL);
}
/**
half_h = (float)h *0.5;
evas_map_util_3d_rotate(map, 0, 0, degree, x + half_w, y + half_h, 0);
- evas_map_util_3d_perspective(map, x + half_w, y + half_h, 0, 10000);
+ evas_map_util_3d_perspective(map, x + half_w, y + half_h, 0, FOCAL);
evas_object_map_enable_set(obj, EINA_TRUE);
evas_object_map_set(obj, map);
}