[no subject]

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


[...]

     The compression schemes are all byte-oriented.  If the
compressed data ends up being an odd length a single pad byte is
inserted so that the FLI_COPY's always start at an even address
for faster DMA.

[...]

.- David A. Capello - www.davidcapello.com.ar

--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="fli.c.diff"

--- allegro-4.1.12/src/fli.c	Thu Nov 20 20:51:00 2003
+++ allegro-4.1.12.new/src/fli.c	Wed Nov 26 10:37:53 2003
@@ -809,6 +809,10 @@
       }
 
       p += sz;
+
+      /* alignment */
+      if (sz & 1)
+	p++;
    }
 
    /* move on to the next frame */

--nFreZHaLTZJo0R7j--





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/