From: Jihoon Kim Date: Tue, 14 Jul 2015 08:41:46 +0000 (+0900) Subject: Support to get screen size in wayland X-Git-Tag: submit/tizen/20150714.111530~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F43815%2F1;p=platform%2Fcore%2Fuifw%2Fisf.git Support to get screen size in wayland Change-Id: I6ed20abf75def29afc5e962e01328a70aa67ac76 --- diff --git a/ism/extras/efl_panel/isf_panel_efl.cpp b/ism/extras/efl_panel/isf_panel_efl.cpp index b6430a5..81a76e0 100644 --- a/ism/extras/efl_panel/isf_panel_efl.cpp +++ b/ism/extras/efl_panel/isf_panel_efl.cpp @@ -3442,10 +3442,10 @@ static Eina_Bool efl_get_default_zone_geometry_info (Ecore_X_Window root, uint * static void efl_get_screen_resolution (int &width, int &height) { SCIM_DEBUG_MAIN (3) << __FUNCTION__ << "...\n"; -#if HAVE_ECOREX - static Evas_Coord scr_w = 0, scr_h = 0; + static Evas_Coord scr_w = 0, scr_h = 0; if (scr_w == 0 || scr_h == 0) { +#if HAVE_ECOREX uint w = 0, h = 0; if (efl_get_default_zone_geometry_info (ecore_x_window_root_first_get (), NULL, NULL, &w, &h)) { scr_w = w; @@ -3453,15 +3453,13 @@ static void efl_get_screen_resolution (int &width, int &height) } else { ecore_x_window_size_get (ecore_x_window_root_first_get (), &scr_w, &scr_h); } +#else + ecore_wl_screen_size_get(&scr_w, &scr_h); +#endif } width = scr_w; height = scr_h; -#else - //FIXME: - width = 720; - height = 1280; -#endif } //////////////////////////////////////////////////////////////////////