evas: fix crash with Evas buffer when target colorspace has no alpha.

This commit is contained in:
Cedric BAIL 2013-04-03 19:18:58 +09:00
parent c16daf940f
commit f11dc2f184
3 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2013-03-04 Cedric Bail
* Evas: fix crash with Buffer engine with non alpha output.
2013-03-30 Cedric Bail
* Evil: Add mkdtemp.

1
NEWS
View File

@ -219,3 +219,4 @@ Fixes:
* Ecore_x: fix alpha set function not clear sync counter
* Fix evas word start/end find in textblock to be consistent with other toolkit logic on the matter
* Fix edje entry to respect filters and if input filtered out, don't clear selections
* Fix evas buffer engine allocation with non alpha output

View File

@ -121,13 +121,14 @@ evas_buffer_outbuf_buf_new_region_for_update(Outbuf *buf, int x, int y, int w, i
((buf->depth == OUTBUF_DEPTH_BGRA_32BPP_8888_8888)))
{
im->cache_entry.flags.alpha = 1;
#ifdef EVAS_CSERVE2
if (evas_cserve2_use_get())
evas_cache2_image_size_set(&im->cache_entry, w, h);
else
#endif
im = (RGBA_Image *) evas_cache_image_size_set(&im->cache_entry, w, h);
}
#ifdef EVAS_CSERVE2
if (evas_cserve2_use_get())
evas_cache2_image_size_set(&im->cache_entry, w, h);
else
#endif
im = (RGBA_Image *) evas_cache_image_size_set(&im->cache_entry, w, h);
}
}
return im;