aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_evas_snapshot.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-15 18:37:25 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 13:34:50 +0900
commit4c634ed78e0b298f916e4c79a7e222100d0085d2 (patch)
tree9fa8b385d3d8c2445ea94c839fdc38a30eb36f7d /src/bin/elementary/test_evas_snapshot.c
parentefl: Use Eina.Position2D for Efl.Gfx.position (diff)
downloadefl-4c634ed78e0b298f916e4c79a7e222100d0085d2.tar.gz
efl: Use Eina.Size2D for Efl.Gfx.size
Big patch as a lot of things call or reimplement size_set. Hopefully I got it right... fingers crossed.
Diffstat (limited to 'src/bin/elementary/test_evas_snapshot.c')
-rw-r--r--src/bin/elementary/test_evas_snapshot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/elementary/test_evas_snapshot.c b/src/bin/elementary/test_evas_snapshot.c
index cb13386320..ec6c1efb68 100644
--- a/src/bin/elementary/test_evas_snapshot.c
+++ b/src/bin/elementary/test_evas_snapshot.c
@@ -62,9 +62,9 @@ _render_post(void *data, const Efl_Event *ev)
static void
_save_image(void *data, const Efl_Event *ev EINA_UNUSED)
{
+ Eina_Size2D sz;
Eo *win = data;
Eo *snap;
- int w, h;
// Save is available only during render_post
snap = efl_key_wref_get(win, "snap");
@@ -75,8 +75,8 @@ _save_image(void *data, const Efl_Event *ev EINA_UNUSED)
// This is a special case handled by snapshot for the purpose of taking
// screenshots like this. This is useful only if the button click has no
// animation on screen and there is no spinning wheel either.
- efl_gfx_size_get(snap, &w, &h);
- efl_gfx_buffer_update_add(snap, 0, 0, w, h);
+ sz = efl_gfx_size_get(snap);
+ efl_gfx_buffer_update_add(snap, 0, 0, sz.w, sz.h);
}
static void
@@ -206,5 +206,5 @@ test_evas_snapshot(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
efl_key_wref_set(win, "snap", snap);
efl_key_wref_set(win, "grid", grid);
- efl_gfx_size_set(win, 400, 400);
+ efl_gfx_size_set(win, EINA_SIZE2D(400, 400));
}