Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/software_ddraw
Modified Files:
evas_outbuf.c
Log Message:
cedric's cache changes patch
===================================================================
RCS file:
/cvs/e/e17/libs/evas/src/modules/engines/software_ddraw/evas_outbuf.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evas_outbuf.c 8 Sep 2007 10:42:30 -0000 1.4
+++ evas_outbuf.c 12 Apr 2008 00:32:27 -0000 1.5
@@ -117,24 +117,23 @@
(buf->priv.mask.g == 0x00ff00) &&
(buf->priv.mask.b == 0x0000ff))
{
- im = evas_cache_image_empty(evas_common_image_cache_get());
- im->image->w = width;
- im->image->h = height;
- im->image->data = NULL;
- im->image->no_free = 1;
+ im = (RGBA_Image*)
evas_cache_image_empty(evas_common_image_cache_get());
+ if (!im) return NULL;
+ im = (RGBA_Image*) evas_cache_image_size_set(&im->cache_entry, width,
height);
+ if (!im) return NULL;
+ im->image.no_free = 1;
ddob = evas_software_ddraw_output_buffer_new(buf->priv.dd.depth,
width,
height,
NULL);
im->extended_info = ddob;
- im->image->data = (DATA32
*)evas_software_ddraw_output_buffer_data(ddob, &bpl);
+ im->image.data = (DATA32
*)evas_software_ddraw_output_buffer_data(ddob, &bpl);
}
else
{
im = evas_cache_image_empty(evas_common_image_cache_get());
- im->image->w = width;
- im->image->h = height;
- evas_common_image_surface_alloc(im->image);
+ if (!im) return NULL;
+ evas_cache_image_surface_alloc(&im->cache_entry, width, height);
im->extended_info = ddob;
if ((buf->rot == 0) || (buf->rot == 180))
ddob = evas_software_ddraw_output_buffer_new(buf->priv.dd.depth,
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs