aboutsummaryrefslogtreecommitdiffstats
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
parentefl: Introduce Eina.Rect and switch EO APIs to it (diff)
downloadefl-8fb194d969ccb9227e56ea60f538d977393408d7.tar.gz
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 009e38ffdf..549f82a79e 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
}
EOLIAN static void
-_efl_canvas_video_efl_gfx_position_set(Evas_Object *obj, Efl_Canvas_Video_Data *sd, Evas_Coord x, Evas_Coord y)
+_efl_canvas_video_efl_gfx_position_set(Evas_Object *obj, Efl_Canvas_Video_Data *sd, Eina_Position2D pos)
{
int w, h;
- if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, x, y))
+ if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, pos.x, pos.y))
return;
efl_gfx_size_get(obj, &w, &h);
- efl_gfx_position_set(efl_super(obj, MY_CLASS), x, y);
+ efl_gfx_position_set(efl_super(obj, MY_CLASS), pos);
- _clipper_position_size_update(obj, x, y, w, h, sd->video.w, sd->video.h);
+ _clipper_position_size_update(obj, pos.x, pos.y, w, h, sd->video.w, sd->video.h);
}
EOLIAN static void