aboutsummaryrefslogtreecommitdiffstats
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
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/lib/elementary/efl_ui_win.c')
-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)
if (efl_isa(image, EFL_CANVAS_IMAGE_CLASS))
{
+ Eina_Rect rect = {};
+
unmap = EINA_TRUE;
- efl_gfx_buffer_size_get(image, &w, &h);
+ rect.size = efl_gfx_buffer_size_get(image);
efl_gfx_buffer_map(image, &sl, EFL_GFX_BUFFER_ACCESS_MODE_READ,
- 0, 0, w, h, EFL_GFX_COLORSPACE_ARGB8888, 0,
+ &rect, EFL_GFX_COLORSPACE_ARGB8888, 0,
&stride);
+ w = rect.w;
+ h = rect.h;
}
else
{