From: Hyongtaek Lim Date: Thu, 30 Jul 2015 07:13:49 +0000 (+0900) Subject: Add to set window size at es test suite X-Git-Tag: accepted/tizen/mobile/20150731.102627~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53c1758b9792a27eccadcd32be98af04ac857519;p=platform%2Fcore%2Fapi%2Fplayer.git Add to set window size at es test suite Signed-off-by: Hyongtaek Lim Change-Id: Ife1f9a2aa54d2ebe0eadb47085c9e967900cb41d --- diff --git a/test/player_es_push_test.c b/test/player_es_push_test.c old mode 100755 new mode 100644 index f0ab154..ce7a487 --- a/test/player_es_push_test.c +++ b/test/player_es_push_test.c @@ -20,6 +20,10 @@ #include #include #include +#ifdef HAVE_WAYLAND +#include +#include +#endif #define KEY_END "XF86Stop" #define ES_FEEDING_PATH "es_buff://push_mode" @@ -108,13 +112,21 @@ static void win_del(void *data, Evas_Object *obj, void *event) static Evas_Object* create_win(const char *name) { Evas_Object *eo = NULL; + int w = 0; + int h = 0; eo = elm_win_add(NULL, name, ELM_WIN_BASIC); if (eo) { - elm_win_title_set(eo, name); - elm_win_borderless_set(eo, EINA_TRUE); - evas_object_smart_callback_add(eo, "delete,request",win_del, NULL); - elm_win_autodel_set(eo, EINA_TRUE); + elm_win_title_set(eo, name); + elm_win_borderless_set(eo, EINA_TRUE); + evas_object_smart_callback_add(eo, "delete,request",win_del, NULL); + elm_win_screen_size_get(eo, NULL, NULL, &w, &h); + g_print ("window size :%d,%d", w, h); + evas_object_resize(eo, w, h); + elm_win_autodel_set(eo, EINA_TRUE); +#ifdef HAVE_WAYLAND + elm_win_alpha_set(eo, EINA_TRUE); +#endif } return eo; }