On Wednesday 21 March 2007 16:58:15 Cedric BAIL wrote:
> - evas_cache_image.diff: Add a global cache for image mechanism.
>       I hope it could be shared with other engine and reduce their code
> complexity. This cache works more like the one from FreeType, you request
> image/operation from the cache, and the cache forwards it if needed to the
> right callback function. This need to be carefully reviewed, even if it
> seems correct. I also included in this patch a new
> 'evas_common_load_image_module_from_file' function that just create the
> RGBA_Image without any cache manipulation. I also updated
> 'evas_common_load_image_from_file' function to use it.

Oops, I don't know how I didn't catch a little bug with image dirty before as 
it show up when runing evas_sdl_test...

Well I also dislike warning during compilation, the second patch will remove 
the one I introduced in 'evas_common_load_image_from_file'.

  Cedric
diff -X exclude.cvs -Nrau e17-main/libs/evas/src/lib/cache/evas_cache_image.c e17-dev/libs/evas/src/lib/cache/evas_cache_image.c
--- e17-main/libs/evas/src/lib/cache/evas_cache_image.c	2007-03-28 21:57:26.000000000 +0200
+++ e17-dev/libs/evas/src/lib/cache/evas_cache_image.c	2007-03-28 19:16:39.000000000 +0200
@@ -219,8 +219,8 @@
 RGBA_Image*
 evas_cache_image_dirty(RGBA_Image* im, int x, int y, int w, int h)
 {
+   RGBA_Image*          im_dirty = im;
    Evas_Cache_Image*    cache;
-   RGBA_Image*          im_dirty;
    char*                hkey;
 
    assert(im);
diff -X exclude.cvs -Nrau e17-main/libs/evas/src/lib/engines/common/evas_image_load.c e17-dev/libs/evas/src/lib/engines/common/evas_image_load.c
--- e17-main/libs/evas/src/lib/engines/common/evas_image_load.c	2007-03-28 21:57:26.000000000 +0200
+++ e17-dev/libs/evas/src/lib/engines/common/evas_image_load.c	2007-03-26 23:06:56.000000000 +0200
@@ -29,7 +29,7 @@
 {
    RGBA_Image           *im;
    Evas_Image_Load_Func *evas_image_load_func = NULL;
-   char                 *loader = NULL;
+   const char           *loader = NULL;
    char                 *dot;
    Evas_List            *l;
    Evas_Module          *em;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to