Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/gl_common Modified Files: evas_gl_common.h evas_gl_image.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/modules/engines/gl_common/evas_gl_common.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evas_gl_common.h 2 May 2006 07:28:48 -0000 1.2 +++ evas_gl_common.h 18 Aug 2006 14:45:25 -0000 1.3 @@ -108,6 +108,7 @@ Evas_GL_Context *gc; RGBA_Image *im; Evas_GL_Texture *tex; + RGBA_Image_Loadopts load_opts; int putcount; int references; char dirty : 1; @@ -175,7 +176,7 @@ void evas_gl_common_texture_free(Evas_GL_Texture *tex); void evas_gl_common_texture_mipmaps_build(Evas_GL_Texture *tex, RGBA_Image *im, int smooth); -Evas_GL_Image *evas_gl_common_image_load(Evas_GL_Context *gc, char *file, char *key); +Evas_GL_Image *evas_gl_common_image_load(Evas_GL_Context *gc, char *file, char *key, Evas_Image_Load_Opts *lo); Evas_GL_Image *evas_gl_common_image_new_from_data(Evas_GL_Context *gc, int w, int h, int *data); Evas_GL_Image *evas_gl_common_image_new_from_copied_data(Evas_GL_Context *gc, int w, int h, int *data); Evas_GL_Image *evas_gl_common_image_new(Evas_GL_Context *gc, int w, int h); =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/engines/gl_common/evas_gl_image.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- evas_gl_image.c 14 Jan 2006 12:13:37 -0000 1.1 +++ evas_gl_image.c 18 Aug 2006 14:45:25 -0000 1.2 @@ -1,13 +1,13 @@ #include "evas_gl_private.h" Evas_GL_Image * -evas_gl_common_image_load(Evas_GL_Context *gc, char *file, char *key) +evas_gl_common_image_load(Evas_GL_Context *gc, char *file, char *key, Evas_Image_Load_Opts *lo) { Evas_GL_Image *im; RGBA_Image *im_im; Evas_List *l; - im_im = evas_common_load_image_from_file(file, key); + im_im = evas_common_load_image_from_file(file, key, lo); if (!im_im) return NULL; for (l = gc->images; l; l = l->next) @@ -35,6 +35,7 @@ im->gc = gc; im->references = 1; im->cached = 1; + if (lo) im->load_opts = *lo; gc->images = evas_list_prepend(gc->images, im); return im; } ------------------------------------------------------------------------- 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