Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/modules/savers/png


Modified Files:
        evas_image_save_png.c 


Log Message:
tiff saver and more checks

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/savers/png/evas_image_save_png.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- evas_image_save_png.c       15 Jan 2006 10:32:25 -0000      1.1
+++ evas_image_save_png.c       10 Apr 2006 07:26:45 -0000      1.2
@@ -22,7 +22,10 @@
    int                 x, y, j;
    png_bytep           row_ptr, data = NULL;
    png_color_8         sig_bit;
-   int                 quality = 75, compression = 3, num_passes = 1, pass;
+   int                 num_passes = 1, pass;
+
+   if (!im || !im->image || !im->image->data || !file)
+      return 0;
    
    f = fopen(file, "wb");
    if (!f) return 0;




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to