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: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
parentevas: Use Eina.Size2D for gfx.buffer (diff)
downloadefl-2df8ad36b4b0068ae5ae3f547d2ece4d3c741a76.tar.gz
evas: Use Eina.Slice on the stack (gfx.buffer)
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-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)
unmap = EINA_TRUE;
rect.size = efl_gfx_buffer_size_get(image);
- efl_gfx_buffer_map(image, &sl, EFL_GFX_BUFFER_ACCESS_MODE_READ,
- &rect, EFL_GFX_COLORSPACE_ARGB8888, 0,
- &stride);
+ sl = efl_gfx_buffer_map(image, EFL_GFX_BUFFER_ACCESS_MODE_READ,
+ &rect, EFL_GFX_COLORSPACE_ARGB8888, 0,
+ &stride);
w = rect.w;
h = rect.h;
}
@@ -3340,7 +3340,7 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd)
}
}
}
- if (unmap) efl_gfx_buffer_unmap(image, &sl);
+ if (unmap) efl_gfx_buffer_unmap(image, sl);
else evas_object_image_data_set(image, sl.mem);
}
}