calculator can not display with full screen.
[apps/core/preloaded/calculator.git] / src / calc-main.c
index 0faa445..6349da8 100644 (file)
@@ -16,8 +16,6 @@
 *
 */
 #include <dlog.h>
-#include <Ecore_X.h>           /* ecore_x_window_size_get */
-#include <utilX.h>             /* KEY_END */
 #include <feedback.h>
 #include "calc-main.h"
 #include "calc-view.h"
@@ -232,15 +230,14 @@ static Evas_Object *_create_win(const char *name)
 {
     CALC_FUN_BEG();
        Evas_Object *eo;
-       int w, h;
+       int w,h;
        eo = elm_win_add(NULL, name, ELM_WIN_BASIC);
        if (eo) {
                elm_win_title_set(eo, name);
                evas_object_smart_callback_add(eo, "delete,request", _win_del,
                                               NULL);
-               ecore_x_window_size_get(ecore_x_window_root_first_get(), &w,
-                                       &h);
-               evas_object_resize(eo, w, h);
+       elm_win_screen_size_get(eo, NULL, NULL, &w, &h);
+       evas_object_resize(eo, w, h);
        }
        CALC_FUN_END();
        return eo;