[Swfdec] libswfdec/swfdec_image.c

Benjamin Otte company at kemper.freedesktop.org
Tue Dec 11 11:09:01 PST 2007


 libswfdec/swfdec_image.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3e64e6a26e1c7c102f2cce53540612877ecbc910
Author: Benjamin Otte <otte at gnome.org>
Date:   Tue Dec 11 20:08:52 2007 +0100

    forgot to fix one line when changing data access from uint8 to uint32

diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c
index be63312..f3d27fc 100644
--- a/libswfdec/swfdec_image.c
+++ b/libswfdec/swfdec_image.c
@@ -662,7 +662,7 @@ swfdec_image_create_surface_transformed (SwfdecImage *image, const SwfdecColorTr
   for (i = 0; i < n; i++) {
     tdata[i] = swfdec_color_apply_transform_premultiplied (sdata[i], trans);
     /* optimization: check for alpha channel to speed up compositing */
-    has_alpha = tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF;
+    has_alpha |= SWFDEC_COLOR_A (tdata[i]) != 0xFF;
   }
   cairo_surface_destroy (source);
   surface = cairo_image_surface_create_for_data ((unsigned char *) tdata,


More information about the Swfdec mailing list