Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/common


Modified Files:
        evas_image_load.c evas_image_main.c 


Log Message:


added the ability to set load scaledown, dpi or load size - the svg loader
uses these to know what to render and how (or has defaults if these are not
set)

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/engines/common/evas_image_load.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- evas_image_load.c   17 Aug 2006 14:11:59 -0000      1.31
+++ evas_image_load.c   18 Aug 2006 14:45:24 -0000      1.32
@@ -4,7 +4,7 @@
 extern Evas_List *evas_modules;
 
 RGBA_Image *
-evas_common_load_image_from_file(const char *file, const char *key)
+evas_common_load_image_from_file(const char *file, const char *key, 
RGBA_Image_Loadopts *lo)
 {
    Evas_Image_Load_Func *evas_image_load_func = NULL;
    Evas_List *l;
@@ -14,7 +14,7 @@
 
    if (file == NULL) return NULL;
 
-   im = evas_common_image_find(file, key, 0);
+   im = evas_common_image_find(file, key, 0, lo);
    if (im)
      {
        evas_common_image_ref(im);
@@ -23,6 +23,8 @@
    im = evas_common_image_new();
    if (!im) return NULL;
 
+   if (lo) im->load_opts = *lo;
+   
    p = strrchr(file, '.');
    if (p)
      {
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/engines/common/evas_image_main.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- evas_image_main.c   2 May 2006 07:28:47 -0000       1.30
+++ evas_image_main.c   18 Aug 2006 14:45:24 -0000      1.31
@@ -428,7 +428,7 @@
 
 
 RGBA_Image *
-evas_common_image_find(const char *filename, const char *key, DATA64 timestamp)
+evas_common_image_find(const char *filename, const char *key, DATA64 
timestamp, RGBA_Image_Loadopts *lo)
 {
    char *real_filename = NULL;
    Evas_Object_List *l;



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to