Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/canvas Modified Files: evas_main.c evas_object_image.c Log Message: cedric's sdl patch. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_main.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -3 -r1.36 -r1.37 --- evas_main.c 27 May 2007 06:43:22 -0000 1.36 +++ evas_main.c 16 Jul 2007 07:25:33 -0000 1.37 @@ -742,6 +742,9 @@ #ifdef BUILD_ENGINE_SOFTWARE_QTOPIA methods = evas_list_append(methods, strdup("software_qtopia")); #endif +#ifdef BUILD_ENGINE_SDL + methods = evas_list_append(methods, strdup("software_sdl")); +#endif return methods; } =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_object_image.c,v retrieving revision 1.53 retrieving revision 1.54 diff -u -3 -r1.53 -r1.54 --- evas_object_image.c 10 Jul 2007 00:13:26 -0000 1.53 +++ evas_object_image.c 16 Jul 2007 07:25:33 -0000 1.54 @@ -1061,20 +1061,18 @@ else break; } } - im = evas_common_image_new(); + im = evas_cache_image_empty(evas_common_image_cache_get()); if (im) { if (o->cur.has_alpha) im->flags |= RGBA_IMAGE_HAS_ALPHA; - im->image = evas_common_image_surface_new(im); - if (im->image) - { - im->image->data = data; - im->image->w = o->cur.image.w; - im->image->h = o->cur.image.h; - im->image->no_free = 1; - ok = evas_common_save_image_to_file(im, file, key, quality, compress); - } - evas_common_image_free(im); + + im->image->data = data; + im->image->w = o->cur.image.w; + im->image->h = o->cur.image.h; + im->image->no_free = 1; + ok = evas_common_save_image_to_file(im, file, key, quality, compress); + + evas_cache_image_drop(im); } return ok; } ------------------------------------------------------------------------- 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