Displaying 2 results from an estimated 2 matches for "get_pattern".
Did you mean:
gem_pattern
2007 Apr 16
0
7 commits - libswfdec/swfdec_codec_gst.c libswfdec/swfdec_font.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_shape.c libswfdec/swfdec_shape.h libswfdec/swfdec_sprite.c
...nt * gradient; /* gradient to paint */
gboolean radial; /* TRUE for radial gradient, FALSE for linear gradient */
gboolean morph; /* TRUE for morph gradients */
+ double focus; /* focus point */
};
struct _SwfdecGradientPatternClass
@@ -208,10 +209,12 @@ swfdec_gradient_pattern_get_pattern (Swf
{
cairo_matrix_t mat;
swfdec_matrix_morph (&mat, &pat->start_transform, &pat->end_transform, ratio);
- if (gradient->radial)
- pattern = cairo_pattern_create_radial (0, 0, 0, 0, 0, 16384 / 256.0);
- else
+ if (gradient->radial) {
+ patter...
2007 Dec 03
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h libswfdec/swfdec_gradient_pattern.c libswfdec/swfdec_gradient_pattern.h libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_pattern.c
...libswfdec/swfdec_gradient_pattern.c
index ca5f8c4..2f63634 100644
--- a/libswfdec/swfdec_gradient_pattern.c
+++ b/libswfdec/swfdec_gradient_pattern.c
@@ -56,7 +56,7 @@ swfdec_gradient_pattern_morph (SwfdecDraw *dest, SwfdecDraw *source, guint ratio
static cairo_pattern_t *
swfdec_gradient_pattern_get_pattern (SwfdecPattern *pat, const SwfdecColorTransform *trans)
{
- guint i;
+ guint i, ratio;
cairo_pattern_t *pattern;
SwfdecColor color;
double offset;
@@ -89,13 +89,20 @@ swfdec_gradient_pattern_get_pattern (SwfdecPattern *pat, const SwfdecColorTransf
}
#endif
cairo_pattern_set_exten...