summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-02-26 11:36:27 +0000
committerChris Michael <cp.michael@samsung.com>2014-02-26 11:36:27 +0000
commit44e023c8880fa72f4d8ac7416333057c2b551f58 (patch)
tree0836a958a608232fec0a452666e08598a3d51388 /src
parent3f1c866b50151d1411edcb4b7c32b59e73da42c3 (diff)
bugfix: Fix Wayland Shm engine destination calculation typo
When rotation is 0, we need to advance the destination pointer in the X direction by a Multiple of Bits-Per-Pixel...not an addition. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_swapbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_swapbuf.c b/src/modules/evas/engines/wayland_shm/evas_swapbuf.c
index fe103d3343..56ff4a3c4e 100644
--- a/src/modules/evas/engines/wayland_shm/evas_swapbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_swapbuf.c
@@ -328,7 +328,7 @@ evas_swapbuf_update_region_push(Outbuf *ob, RGBA_Image *update, int x, int y, in
328 if (ob->rotation == 0) 328 if (ob->rotation == 0)
329 { 329 {
330 RECTS_CLIP_TO_RECT(rect.x, rect.y, rect.w, rect.h, 0, 0, ww, hh); 330 RECTS_CLIP_TO_RECT(rect.x, rect.y, rect.w, rect.h, 0, 0, ww, hh);
331 dst += (bpl * rect.y) + (rect.x + bpp); 331 dst += (bpl * rect.y) + (rect.x * bpp);
332 w -= rx; 332 w -= rx;
333 } 333 }
334 else if (ob->rotation == 180) 334 else if (ob->rotation == 180)