Enlightenment CVS committal

Author  : kwo
Project : e17
Module  : libs/imlib2

Dir     : e17/libs/imlib2/src/modules/loaders


Modified Files:
        loader_lbm.c 


Log Message:
Oops - correction.

===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/modules/loaders/loader_lbm.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- loader_lbm.c        18 Jun 2008 17:52:38 -0000      1.5
+++ loader_lbm.c        18 Jun 2008 18:54:08 -0000      1.6
@@ -454,10 +454,9 @@
 
     im->data = malloc(im->w * im->h * sizeof(DATA32));
     n = ilbm.depth;
+    if (ilbm.mask == 1) n++;
     plane[0] = malloc(((im->w + 15) / 16) * 2 * n);
     if (im->data && plane[0]) {
-        if (ilbm.mask == 1) n++;
-
         for (i = 1; i < n; i++) plane[i] = plane[i - 1] + ((im->w + 15) / 16) 
* 2;
 
         z = ((im->w + 15) / 16) * 2 * n;



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to