summaryrefslogtreecommitdiff
path: root/src/lib/emotion
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-15 12:14:32 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 13:22:54 +0900
commit8fb194d969ccb9227e56ea60f538d977393408d7 (patch)
tree0673442275d29108e58a4cb0ab9fc0946db91b59 /src/lib/emotion
parentf3eff6eb3ee6e9b56c0be5cd7f8905f14b388e4f (diff)
efl: Use Eina.Position2D for Efl.Gfx.position
Note: This is a little bit more cumbersome in some places but in most it's more convenient than (x,y).
Diffstat (limited to 'src/lib/emotion')
-rw-r--r--src/lib/emotion/emotion_smart.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index 009e38f..549f82a 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -1954,17 +1954,17 @@ _efl_canvas_video_efl_canvas_group_group_del(Evas_Object *obj EINA_UNUSED, Efl_C
1954} 1954}
1955 1955
1956EOLIAN static void 1956EOLIAN static void
1957_efl_canvas_video_efl_gfx_position_set(Evas_Object *obj, Efl_Canvas_Video_Data *sd, Evas_Coord x, Evas_Coord y) 1957_efl_canvas_video_efl_gfx_position_set(Evas_Object *obj, Efl_Canvas_Video_Data *sd, Eina_Position2D pos)
1958{ 1958{
1959 int w, h; 1959 int w, h;
1960 1960
1961 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, x, y)) 1961 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, pos.x, pos.y))
1962 return; 1962 return;
1963 1963
1964 efl_gfx_size_get(obj, &w, &h); 1964 efl_gfx_size_get(obj, &w, &h);
1965 efl_gfx_position_set(efl_super(obj, MY_CLASS), x, y); 1965 efl_gfx_position_set(efl_super(obj, MY_CLASS), pos);
1966 1966
1967 _clipper_position_size_update(obj, x, y, w, h, sd->video.w, sd->video.h); 1967 _clipper_position_size_update(obj, pos.x, pos.y, w, h, sd->video.w, sd->video.h);
1968} 1968}
1969 1969
1970EOLIAN static void 1970EOLIAN static void