summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 19:59:11 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-19 10:51:48 +0900
commit2df8ad36b4b0068ae5ae3f547d2ece4d3c741a76 (patch)
treee8821395cdc6cca75f968d2e7e7decab42f5a94c /src/lib/elementary/efl_ui_win.c
parent1f242afdefd27cc11eb71bc598f4e7903ceb5ea9 (diff)
evas: Use Eina.Slice on the stack (gfx.buffer)
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 4fad992455..a54274e95f 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -3290,9 +3290,9 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd)
3290 3290
3291 unmap = EINA_TRUE; 3291 unmap = EINA_TRUE;
3292 rect.size = efl_gfx_buffer_size_get(image); 3292 rect.size = efl_gfx_buffer_size_get(image);
3293 efl_gfx_buffer_map(image, &sl, EFL_GFX_BUFFER_ACCESS_MODE_READ, 3293 sl = efl_gfx_buffer_map(image, EFL_GFX_BUFFER_ACCESS_MODE_READ,
3294 &rect, EFL_GFX_COLORSPACE_ARGB8888, 0, 3294 &rect, EFL_GFX_COLORSPACE_ARGB8888, 0,
3295 &stride); 3295 &stride);
3296 w = rect.w; 3296 w = rect.w;
3297 h = rect.h; 3297 h = rect.h;
3298 } 3298 }
@@ -3340,7 +3340,7 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd)
3340 } 3340 }
3341 } 3341 }
3342 } 3342 }
3343 if (unmap) efl_gfx_buffer_unmap(image, &sl); 3343 if (unmap) efl_gfx_buffer_unmap(image, sl);
3344 else evas_object_image_data_set(image, sl.mem); 3344 else evas_object_image_data_set(image, sl.mem);
3345 } 3345 }
3346 } 3346 }