Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_image_save_eet.c 


Log Message:


dont unpremul

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/savers/eet/evas_image_save_eet.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evas_image_save_eet.c       30 Sep 2006 10:21:23 -0000      1.4
+++ evas_image_save_eet.c       2 Oct 2006 07:05:35 -0000       1.5
@@ -26,24 +26,24 @@
    if (!ef) return 0;
    if ((quality <= 100) || (compress < 0)) lossy = 1;
    if (im->flags & RGBA_IMAGE_HAS_ALPHA) alpha = 1;
-   if (alpha)
-     {
-       data = malloc(im->image->w * im->image->h * sizeof(DATA32));
-       if (!data)
-        {
-          eet_close(ef);
-          return 0;
-        }
-       memcpy(data, im->image->data, im->image->w * im->image->h * 
sizeof(DATA32));
-       evas_common_convert_argb_unpremul(data, im->image->w * im->image->h);
-     }
-   else
+//   if (alpha)
+//     {
+//       data = malloc(im->image->w * im->image->h * sizeof(DATA32));
+//       if (!data)
+//      {
+//        eet_close(ef);
+//        return 0;
+//      }
+//       memcpy(data, im->image->data, im->image->w * im->image->h * 
sizeof(DATA32));
+//       evas_common_convert_argb_unpremul(data, im->image->w * im->image->h);
+//     }
+//   else
        data = im->image->data;
    ok = eet_data_image_write(ef, (char *)key, data,
                             im->image->w, im->image->h, alpha, compress,
                             quality, lossy);
-   if (alpha)
-       free(data);
+//   if (alpha)
+//     free(data);
    eet_close(ef);
    return ok;
 }



-------------------------------------------------------------------------
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-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to