search for: swfdec_bits_do_get_gradient

Displaying 1 result from an estimated 1 matches for "swfdec_bits_do_get_gradient".

2007 Sep 17
0
2 commits - libswfdec/swfdec_bits.c
...1:31:24 2007 +0200 more bad duplication diff --git a/libswfdec/swfdec_bits.c b/libswfdec/swfdec_bits.c index bddef90..2d1551a 100644 --- a/libswfdec/swfdec_bits.c +++ b/libswfdec/swfdec_bits.c @@ -599,12 +599,14 @@ swfdec_bits_get_rgba (SwfdecBits * bits) } static inline SwfdecGradient * -swfdec_bits_do_get_gradient (SwfdecBits *bits, gboolean alpha) +swfdec_bits_do_get_gradient (SwfdecBits *bits, gboolean alpha, gboolean morph) { SwfdecGradient *grad; guint i, n_gradients; n_gradients = swfdec_bits_get_u8 (bits); + if (morph) + n_gradients *= 2; grad = g_malloc (sizeof (SwfdecGradient) +...