summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 21:08:28 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-19 10:51:48 +0900
commite4517b28d635e5daafc73a811477d83003ee698c (patch)
tree0bc7defe5ab9536f4c8981d3a5cb462d19be8ecb /src/lib/elementary
parent8bf06f95fe015c382d694deada7daf82df8b972a (diff)
efl: Use Eina.Size2D for screen size
This API isn't so great when considering Wayland...
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index a54274e95f..86b04d4de4 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -6230,10 +6230,12 @@ _efl_ui_win_screen_constrain_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd)
6230 return sd->constrain; 6230 return sd->constrain;
6231} 6231}
6232 6232
6233EOLIAN static void 6233EOLIAN static Eina_Size2D
6234_efl_ui_win_efl_screen_screen_size_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int *w, int *h) 6234_efl_ui_win_efl_screen_screen_size_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd)
6235{ 6235{
6236 ecore_evas_screen_geometry_get(sd->ee, NULL, NULL, w, h); 6236 Eina_Size2D sz;
6237 ecore_evas_screen_geometry_get(sd->ee, NULL, NULL, &sz.w, &sz.h);
6238 return sz;
6237} 6239}
6238 6240
6239EOLIAN static void 6241EOLIAN static void