{
if (!(img = ob->priv.onebuf))
{
- int bw = 0, bh = 0, bpl = 0;
+ int bw = 0, bh = 0;
void *data;
if (!(data = _evas_shm_surface_data_get(ob->surface, &bw, &bh)))
return NULL;
}
- bpl = (bw * sizeof(int));
-
#ifdef EVAS_CSERVE2
if (evas_cserve2_use_get())
{
img = (RGBA_Image *)
evas_cache2_image_data(evas_common_image_cache2_get(),
- bpl / sizeof(int), bh, data,
+ bw, bh, data,
ob->priv.destination_alpha,
EVAS_COLORSPACE_ARGB8888);
}
{
img = (RGBA_Image *)
evas_cache_image_data(evas_common_image_cache_get(),
- bpl / sizeof(int), bh, data,
+ bw, bh, data,
ob->priv.destination_alpha,
EVAS_COLORSPACE_ARGB8888);