cedric pushed a commit to branch master.
commit f2e95b094a49f6826b43417ec20ae933bed646f5
Author: Cedric Bail <[email protected]>
Date: Tue Apr 23 16:48:27 2013 +0900
evas: take stride into account with swapbuf.
---
src/modules/evas/engines/software_x11/evas_xlib_swapbuf.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/modules/evas/engines/software_x11/evas_xlib_swapbuf.c
b/src/modules/evas/engines/software_x11/evas_xlib_swapbuf.c
index 2c83f6a..edcb63a 100644
--- a/src/modules/evas/engines/software_x11/evas_xlib_swapbuf.c
+++ b/src/modules/evas/engines/software_x11/evas_xlib_swapbuf.c
@@ -230,16 +230,17 @@ evas_software_xlib_swapbuf_new_region_for_update(Outbuf
*buf, int x, int y, int
data = evas_xlib_swapper_buffer_map(buf->priv.swapper, &bpl,
&(ww), &(hh));
+ // To take stride into account, we do use bpl as the real image
width, but return the real useful one.
#ifdef EVAS_CSERVE2
if (evas_cserve2_use_get())
im = (RGBA_Image
*)evas_cache2_image_data(evas_common_image_cache2_get(),
- ww, hh, data,
+ bpl / sizeof (int),
hh, data,
buf->priv.destination_alpha,
EVAS_COLORSPACE_ARGB8888);
else
#endif
im = (RGBA_Image
*)evas_cache_image_data(evas_common_image_cache_get(),
- ww, hh, data,
+ bpl / sizeof (int),
hh, data,
buf->priv.destination_alpha,
EVAS_COLORSPACE_ARGB8888);
buf->priv.onebuf = im;
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr