summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2015-07-20 16:52:41 +0200
committerNobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>2015-07-21 11:51:42 +0900
commit1c8197780ef947c9b9e49073935570bbb350767c (patch)
treebf7f74b76b2e6e9bdd499e8e909b77c5e0386ecb
parentc0a7446168caa1c6362c8393e9a707e681cb2372 (diff)
downloadwayland-ivi-extension-1c8197780ef947c9b9e49073935570bbb350767c.tar.gz
ivi-controller: use image_size for surface_screenshot API
image_buffer has a size of image_size. Therefore, image_size should be used in the write operation. Otherwise, weston crashes. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
-rw-r--r--weston-ivi-shell/src/ivi-controller-impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/weston-ivi-shell/src/ivi-controller-impl.c b/weston-ivi-shell/src/ivi-controller-impl.c
index b92b4ce..1f0ae95 100644
--- a/weston-ivi-shell/src/ivi-controller-impl.c
+++ b/weston-ivi-shell/src/ivi-controller-impl.c
@@ -830,7 +830,7 @@ controller_surface_screenshot(struct wl_client *client,
free(buffer);
if (save_as_bitmap(filename, (const char *)image_buffer,
- size, width, height, 24) != 0) {
+ image_size, width, height, 24) != 0) {
weston_log("failed to take screenshot\n");
}