aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_evas_snapshot.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 19:30:30 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-19 10:51:48 +0900
commit1f242afdefd27cc11eb71bc598f4e7903ceb5ea9 (patch)
treebd3bc5074c4982334d1ff46d17d686b5ab0bbe32 /src/bin/elementary/test_evas_snapshot.c
parentevas: Use Eina.Rect for object list functions (diff)
downloadefl-1f242afdefd27cc11eb71bc598f4e7903ceb5ea9.tar.gz
evas: Use Eina.Size2D for gfx.buffer
For consistency.
Diffstat (limited to 'src/bin/elementary/test_evas_snapshot.c')
-rw-r--r--src/bin/elementary/test_evas_snapshot.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/elementary/test_evas_snapshot.c b/src/bin/elementary/test_evas_snapshot.c
index 625901943d..a6d41eb59e 100644
--- a/src/bin/elementary/test_evas_snapshot.c
+++ b/src/bin/elementary/test_evas_snapshot.c
@@ -62,7 +62,6 @@ _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;
@@ -75,8 +74,7 @@ _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.
- sz = efl_gfx_size_get(snap);
- efl_gfx_buffer_update_add(snap, 0, 0, sz.w, sz.h);
+ efl_gfx_buffer_update_add(snap, NULL);
}
static void