From: jomui Date: Fri, 14 Oct 2016 07:43:18 +0000 (+0900) Subject: fix bug for capture X-Git-Tag: submit/tizen_3.0/20161108.012559~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11ae4ef0b7b232a5a3e9cbb171389e8e35a23d4e;p=platform%2Fcore%2Flocation%2Fmaps-plugin-mapzen.git fix bug for capture Signed-off-by: jomui Change-Id: I8ce2a0fcee360e1a0d1fae4601436d62d2d046d2 --- diff --git a/src/mapzen/tangram_view.cpp b/src/mapzen/tangram_view.cpp index d8fd6dd..6acc2d8 100644 --- a/src/mapzen/tangram_view.cpp +++ b/src/mapzen/tangram_view.cpp @@ -822,7 +822,7 @@ mapzen_error_e TangramView::captureSnapshot(maps_view_h view, void **data, int * m_map->captureSnapshot(pixels); for (int i = 0; i < m_h; ++i) { - memcpy((unsigned int*)*data + m_w * i, pixels + m_w * (m_h - i - 1), m_w); + memcpy((unsigned int*)*data + m_w * i, pixels + m_w * (m_h - i - 1), m_w * sizeof(unsigned int)); } *cs = MAPS_VIEW_COLORSPACE_RGBA8888;