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:30:30 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-19 10:51:48 +0900
commit1f242afdefd27cc11eb71bc598f4e7903ceb5ea9 (patch)
treebd3bc5074c4982334d1ff46d17d686b5ab0bbe32 /src/lib/elementary/efl_ui_win.c
parent686366a03b2352f81d6ea4a79c6608d1bd5e1590 (diff)
evas: Use Eina.Size2D for gfx.buffer
For consistency.
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 7cf004a405..4fad992455 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -3286,11 +3286,15 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd)
3286 3286
3287 if (efl_isa(image, EFL_CANVAS_IMAGE_CLASS)) 3287 if (efl_isa(image, EFL_CANVAS_IMAGE_CLASS))
3288 { 3288 {
3289 Eina_Rect rect = {};
3290
3289 unmap = EINA_TRUE; 3291 unmap = EINA_TRUE;
3290 efl_gfx_buffer_size_get(image, &w, &h); 3292 rect.size = efl_gfx_buffer_size_get(image);
3291 efl_gfx_buffer_map(image, &sl, EFL_GFX_BUFFER_ACCESS_MODE_READ, 3293 efl_gfx_buffer_map(image, &sl, EFL_GFX_BUFFER_ACCESS_MODE_READ,
3292 0, 0, w, h, EFL_GFX_COLORSPACE_ARGB8888, 0, 3294 &rect, EFL_GFX_COLORSPACE_ARGB8888, 0,
3293 &stride); 3295 &stride);
3296 w = rect.w;
3297 h = rect.h;
3294 } 3298 }
3295 else 3299 else
3296 { 3300 {