evas: take stride into account with swapbuf.
This commit is contained in:
parent
d29fc36e1b
commit
f2e95b094a
|
@ -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,
|
data = evas_xlib_swapper_buffer_map(buf->priv.swapper, &bpl,
|
||||||
&(ww), &(hh));
|
&(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
|
#ifdef EVAS_CSERVE2
|
||||||
if (evas_cserve2_use_get())
|
if (evas_cserve2_use_get())
|
||||||
im = (RGBA_Image *)evas_cache2_image_data(evas_common_image_cache2_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,
|
buf->priv.destination_alpha,
|
||||||
EVAS_COLORSPACE_ARGB8888);
|
EVAS_COLORSPACE_ARGB8888);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
im = (RGBA_Image *)evas_cache_image_data(evas_common_image_cache_get(),
|
im = (RGBA_Image *)evas_cache_image_data(evas_common_image_cache_get(),
|
||||||
ww, hh, data,
|
bpl / sizeof (int), hh, data,
|
||||||
buf->priv.destination_alpha,
|
buf->priv.destination_alpha,
|
||||||
EVAS_COLORSPACE_ARGB8888);
|
EVAS_COLORSPACE_ARGB8888);
|
||||||
buf->priv.onebuf = im;
|
buf->priv.onebuf = im;
|
||||||
|
|
Loading…
Reference in New Issue