Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/software_xcb Modified Files: evas_outbuf.c Log Message: cedric's sdl patch. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/engines/software_xcb/evas_outbuf.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- evas_outbuf.c 2 Jun 2007 16:20:32 -0000 1.17 +++ evas_outbuf.c 16 Jul 2007 07:25:34 -0000 1.18 @@ -281,8 +281,7 @@ (buf->priv.mask.g == 0x00ff00) && (buf->priv.mask.b == 0x0000ff)) { - im = evas_common_image_new(); - im->image = evas_common_image_surface_new(im); + im = evas_cache_image_empty(evas_common_image_cache_get()); im->image->w = w; im->image->h = h; im->image->data = NULL; @@ -305,7 +304,10 @@ } else { - im = evas_common_image_create(w, h); + im = evas_cache_image_empty(evas_common_image_cache_get()); + im->image->w = w; + im->image->h = h; + evas_common_image_surface_alloc(im->image); im->extended_info = obr; if ((buf->rot == 0) || (buf->rot == 180)) obr->xcbob = evas_software_xcb_x_output_buffer_new(buf->priv.x.conn, @@ -391,7 +393,7 @@ buf->priv.pending_writes = evas_list_remove_list(buf->priv.pending_writes, buf->priv.pending_writes); obr = im->extended_info; - evas_common_image_free(im); + evas_cache_image_drop(im); if (obr->xcbob) evas_software_xcb_x_output_buffer_free(obr->xcbob, 0); if (obr->mxcbob) evas_software_xcb_x_output_buffer_free(obr->mxcbob, 0); free(obr); ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs