diff options
author | Chris Michael <cp.michael@samsung.com> | 2013-04-30 14:34:18 +0100 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2013-04-30 14:55:54 +0100 |
commit | 036454746b1937789a2b2fe9d80f32661f6047fa (patch) | |
tree | 5ae4c7c205c56ef137c1fdd4ba1bc3be78bca324 | |
parent | 2ac4cdce762184fe46865ee7dcb69ed86abf19cf (diff) | |
download | efl-036454746b1937789a2b2fe9d80f32661f6047fa.tar.gz |
Fix update_region to use bpl from the buffer
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/modules/evas/engines/wayland_shm/evas_swapbuf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_swapbuf.c b/src/modules/evas/engines/wayland_shm/evas_swapbuf.c index e48f39bf28..10dcdb7bfa 100644 --- a/src/modules/evas/engines/wayland_shm/evas_swapbuf.c +++ b/src/modules/evas/engines/wayland_shm/evas_swapbuf.c @@ -151,21 +151,25 @@ evas_swapbuf_update_region_new(Outbuf *ob, int x, int y, int w, int h, int *cx, { if (!(img = ob->priv.onebuf)) { + int bpl = 0; int bw = 0, bh = 0; void *data; data = evas_swapper_buffer_map(ob->priv.swapper, &bw, &bh); + bpl = (bw * sizeof(int)); #ifdef EVAS_CSERVE2 if (evas_cserve2_use_get()) img = (RGBA_Image *)evas_cache2_image_data(evas_common_image_cache2_get(), - bw, bh, data, + bpl / sizeof(int), bh, + data, ob->priv.destination_alpha, EVAS_COLORSPACE_ARGB8888); else #endif img = (RGBA_Image *)evas_cache_image_data(evas_common_image_cache_get(), - bw, bh, data, + bpl / sizeof(int), bh, + data, ob->priv.destination_alpha, EVAS_COLORSPACE_ARGB8888); |