aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-11-15 05:01:16 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-11-15 05:01:16 +0000
commit940a75b5a8cb2bb48acc78be4843ec59d77eed01 (patch)
treed84c07167772a34a97eeacabce69b1245b08b074
parentwarn-- for new jpect color conversion modes - default case. (diff)
downloadefl-940a75b5a8cb2bb48acc78be4843ec59d77eed01.tar.gz
devilhorns: warning told me that x is not being used.. and that looks
bad... i added it into dest as thats obviously how it should be.. can u double check? SVN revision: 79312
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_outbuf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index 631304acc4..e3a46ee5ab 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -118,14 +118,12 @@ evas_outbuf_new_region_for_update(Outbuf *ob, int x, int y, int w, int h, int *c
void
evas_outbuf_push_updated_region(Outbuf *ob, RGBA_Image *update, int x, int y, int w, int h)
{
- DATA32 *dst, *src, *dest;
+ DATA32 *dst, *src;
int bytes = 0;
if (!ob->priv.dest) return;
bytes = ((w * sizeof(int)) * h);
- dest = (DATA32 *)((DATA8 *)(ob->priv.dest) + (y * bytes) + (x * 4));
-
if (!ob->priv.buffer)
{
Gfx_Func_Copy func;
@@ -140,7 +138,7 @@ evas_outbuf_push_updated_region(Outbuf *ob, RGBA_Image *update, int x, int y, in
src = update->image.data + (yy * update->cache_entry.w);
dst = (DATA32 *)((DATA8 *)(ob->priv.dest) +
((y + yy) * bytes));
- func(src, dst, w);
+ func(src, dst + x, w);
}
}
}