summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmritanshu <a.pandia1@samsung.com>2020-07-31 14:09:16 +0530
committerAmritanshu <a.pandia1@samsung.com>2020-07-31 14:09:16 +0530
commit874e58a85180b4ea2055006a88a971f51fa9ed62 (patch)
tree8ca2c20b1a259a98e915b5a4019f003f49532062
parenta011c61e3c6f423345314515fb421c7d1985d78e (diff)
downloadvideo-player-874e58a85180b4ea2055006a88a971f51fa9ed62.tar.gz
video-player-874e58a85180b4ea2055006a88a971f51fa9ed62.tar.bz2
video-player-874e58a85180b4ea2055006a88a971f51fa9ed62.zip
Modify the animation size for no search resultsubmit/tizen/20200731.111516
Change-Id: Icf8f23855f157430e7d5e99bc0343a25f2cc0884 Signed-off-by: Amritanshu <a.pandia1@samsung.com>
-rwxr-xr-xsrc/widget/mp-video-nocontent-layout.c3
1 files changed, 2 insertions, 1 deletions
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 <app_common.h>
+#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);