From 874e58a85180b4ea2055006a88a971f51fa9ed62 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Fri, 31 Jul 2020 14:09:16 +0530 Subject: [PATCH] Modify the animation size for no search result Change-Id: Icf8f23855f157430e7d5e99bc0343a25f2cc0884 Signed-off-by: Amritanshu --- src/widget/mp-video-nocontent-layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widget/mp-video-nocontent-layout.c b/src/widget/mp-video-nocontent-layout.c index 434b69c..4e59fdc 100755 --- a/src/widget/mp-video-nocontent-layout.c +++ b/src/widget/mp-video-nocontent-layout.c @@ -21,6 +21,7 @@ #include "mp-video-log.h" #include "mp-video-value-define.h" #include +#define ELM_SCALE_SIZE_VIDEO(x) ((int)(((double)(x) * elm_config_scale_get()) / 1.0 + 0.5)) /** * @@ -135,7 +136,7 @@ Evas_Object *mp_create_nosearch_result_layout(const Evas_Object * pParent, const evas_object_size_hint_align_set(pLayout, EVAS_HINT_FILL, EVAS_HINT_FILL); Elm_Animation_View *anim_view = elm_animation_view_add(pLayout); - evas_object_size_hint_min_set(anim_view, ELM_SCALE_SIZE(540), ELM_SCALE_SIZE(420)); + evas_object_size_hint_min_set(anim_view, ELM_SCALE_SIZE_VIDEO(405), ELM_SCALE_SIZE_VIDEO(315)); elm_animation_view_auto_play_set(anim_view, true); elm_animation_view_auto_repeat_set(anim_view, true); elm_animation_view_file_set(anim_view, json_path, NULL); -- 2.34.1