summaryrefslogtreecommitdiff
path: root/src/lib/emotion
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-15 18:37:25 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 13:34:50 +0900
commit4c634ed78e0b298f916e4c79a7e222100d0085d2 (patch)
tree9fa8b385d3d8c2445ea94c839fdc38a30eb36f7d /src/lib/emotion
parent8fb194d969ccb9227e56ea60f538d977393408d7 (diff)
efl: Use Eina.Size2D for Efl.Gfx.size
Big patch as a lot of things call or reimplement size_set. Hopefully I got it right... fingers crossed.
Diffstat (limited to 'src/lib/emotion')
-rw-r--r--src/lib/emotion/emotion_smart.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index 549f82a..0cdbaae 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -1956,27 +1956,27 @@ _efl_canvas_video_efl_canvas_group_group_del(Evas_Object *obj EINA_UNUSED, Efl_C
1956EOLIAN static void 1956EOLIAN static void
1957_efl_canvas_video_efl_gfx_position_set(Evas_Object *obj, Efl_Canvas_Video_Data *sd, Eina_Position2D pos) 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 Eina_Size2D sz;
1960 1960
1961 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, pos.x, pos.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);
1965 efl_gfx_position_set(efl_super(obj, MY_CLASS), pos); 1964 efl_gfx_position_set(efl_super(obj, MY_CLASS), pos);
1966 1965
1967 _clipper_position_size_update(obj, pos.x, pos.y, w, h, sd->video.w, sd->video.h); 1966 sz = efl_gfx_size_get(obj);
1967 _clipper_position_size_update(obj, pos.x, pos.y, sz.w, sz.h, sd->video.w, sd->video.h);
1968} 1968}
1969 1969
1970EOLIAN static void 1970EOLIAN static void
1971_efl_canvas_video_efl_gfx_size_set(Evas_Object *obj, Efl_Canvas_Video_Data *sd, Evas_Coord w, Evas_Coord h) 1971_efl_canvas_video_efl_gfx_size_set(Evas_Object *obj, Efl_Canvas_Video_Data *sd, Eina_Size2D sz)
1972{ 1972{
1973 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_RESIZE, 0, w, h)) 1973 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_RESIZE, 0, sz.w, sz.h))
1974 return; 1974 return;
1975 1975
1976 efl_gfx_size_set(efl_super(obj, MY_CLASS), w, h); 1976 efl_gfx_size_set(efl_super(obj, MY_CLASS), sz);
1977 1977
1978 _efl_canvas_video_aspect_border_apply(obj, sd, w, h); 1978 _efl_canvas_video_aspect_border_apply(obj, sd, sz.w, sz.h);
1979 evas_object_resize(sd->bg, w, h); 1979 evas_object_resize(sd->bg, sz.w, sz.h);
1980} 1980}
1981 1981
1982/* Internal EO APIs and hidden overrides */ 1982/* Internal EO APIs and hidden overrides */