search for: cairo_set_operator

Displaying 10 results from an estimated 10 matches for "cairo_set_operator".

2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...tringOptionNamed (option, nOption, "tool", "Brush"); + + s = findScreenAtDisplay (d, xid); + + if (s) + { + + cr = annoCairoContext (s); + + if (cr) + { + unsigned short *fillColor, *strokeColor; + double lineWidth, strokeWidth; + + ANNO_DISPLAY (d); + + cairo_set_operator (cr, CAIRO_OPERATOR_OVER); + cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND); + + /*fillColor = getColorOptionNamed (option, nOption, "fill_color", + ad->opt[ANNO_DISPLAY_OPTION_FILL_COLOR].value.c); + strokeColor = getColorOptionNamed (option, nOption, "stroke_colo...
2007 Oct 27
1
libswfdec/swfdec_text_field_movie.c
libswfdec/swfdec_text_field_movie.c | 2 ++ 1 file changed, 2 insertions(+) New commits: commit 27e0f570ff653063b78efc89a604236e7fe03ece Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sat Oct 27 17:14:06 2007 +0300 Init TextField's native properties when TextField is created from a tag diff --git a/libswfdec/swfdec_text_field_movie.c
2007 Nov 01
0
2 commits - libswfdec/swfdec_text_field_movie.c test/image
...)); color = swfdec_color_apply_transform (text_movie->border_color, trans); - swfdec_color_set_source (cr, color); + // always use full alpha + swfdec_color_set_source (cr, (color & 0xffffff) + (255 << 24)); cairo_set_line_width (cr, SWFDEC_DOUBLE_TO_TWIPS (1)); cairo_set_operator (cr, CAIRO_OPERATOR_OVER); cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);
2007 Nov 01
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie.c test/image
...E_TO_TWIPS (1), + movie->original_extents.y1 - movie->original_extents.y0 - + SWFDEC_DOUBLE_TO_TWIPS (1)); color = swfdec_color_apply_transform (text_movie->border_color, trans); swfdec_color_set_source (cr, color); cairo_set_line_width (cr, SWFDEC_DOUBLE_TO_TWIPS (1)); + cairo_set_operator (cr, CAIRO_OPERATOR_OVER); + cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE); cairo_stroke (cr); } commit cd7ef475d2811b1283cc9a8a2ce0d2a0dd086981 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Thu Nov 1 20:50:00 2007 +0200 Fix another OOM error, in swfdec_as_object_...
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
...of code (like where line caps and joins are set) diff --git a/libswfdec/swfdec_morph_movie.c b/libswfdec/swfdec_morph_movie.c index 46ebd30..34b4d68 100644 --- a/libswfdec/swfdec_morph_movie.c +++ b/libswfdec/swfdec_morph_movie.c @@ -50,8 +50,6 @@ swfdec_morph_movie_render (SwfdecMovie * cairo_set_operator (cr, CAIRO_OPERATOR_OVER); cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); - cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND); - cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND); for (i = 0; i < shape->vecs->len; i++) { SwfdecShapeVec *vec = &g_array_index (shape->vec...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...85ccc96 100644 --- a/libswfdec/swfdec_morph_movie.c +++ b/libswfdec/swfdec_morph_movie.c @@ -45,7 +45,7 @@ swfdec_morph_movie_render (SwfdecMovie * { SwfdecMorphMovie *morph = SWFDEC_MORPH_MOVIE (movie); SwfdecShape *shape = SWFDEC_SHAPE (morph->morph); - unsigned int i; + guint i; cairo_set_operator (cr, CAIRO_OPERATOR_OVER); cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); diff --git a/libswfdec/swfdec_morphshape.h b/libswfdec/swfdec_morphshape.h index 42308fe..e09133c 100644 --- a/libswfdec/swfdec_morphshape.h +++ b/libswfdec/swfdec_morphshape.h @@ -41,8 +41,8 @@ struct _SwfdecMorphSha...
2007 Nov 20
0
19 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_image.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...ovie->masked_by->parent) { + cairo_transform (cr, &movie->inverse_matrix); + } else { + SWFDEC_FIXME ("implement different parents when masking"); + } mask = swfdec_movie_mask (cr, movie->masked_by, &rect); cairo_pop_group_to_source (cr); cairo_set_operator (cr, CAIRO_OPERATOR_OVER); commit 6fe8469ea8033167fe21fc898f8d5c1e17a46214 Author: Benjamin Otte <otte at gnome.org> Date: Mon Nov 19 21:39:08 2007 +0100 only create the amsk when needed, don't cache it while rendering diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...85ccc96 100644 --- a/libswfdec/swfdec_morph_movie.c +++ b/libswfdec/swfdec_morph_movie.c @@ -45,7 +45,7 @@ swfdec_morph_movie_render (SwfdecMovie * { SwfdecMorphMovie *morph = SWFDEC_MORPH_MOVIE (movie); SwfdecShape *shape = SWFDEC_SHAPE (morph->morph); - unsigned int i; + guint i; cairo_set_operator (cr, CAIRO_OPERATOR_OVER); cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); diff --git a/libswfdec/swfdec_morphshape.h b/libswfdec/swfdec_morphshape.h index 42308fe..e09133c 100644 --- a/libswfdec/swfdec_morphshape.h +++ b/libswfdec/swfdec_morphshape.h @@ -41,8 +41,8 @@ struct _SwfdecMorphSha...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...e *movie, if (cairo_status (cr) != CAIRO_STATUS_SUCCESS) { g_warning ("error rendering with cairo: %s", cairo_status_to_string (cairo_status (cr))); } + if (group) { + cairo_pattern_t *pattern; + + pattern = cairo_pop_group (cr); + cairo_set_source (cr, pattern); + cairo_set_operator (cr, swfdec_movie_get_operator_for_blend_mode (movie->blend_mode)); + cairo_paint (cr); + } cairo_restore (cr); } diff-tree ea0162e4d86d6eae98bf575897ab3bb9a5bb482d (from ba620e7dd08210039197fcb89bb2265856ada6a4) Author: Benjamin Otte <otte at gnome.org> Date: Wed Aug 29 13:09:...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...07 +0100 fix memleak diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 650c476..a223e97 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -886,6 +886,7 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr, cairo_set_source (cr, pattern); cairo_set_operator (cr, swfdec_movie_get_operator_for_blend_mode (movie->blend_mode)); cairo_paint (cr); + cairo_pattern_destroy (pattern); } cairo_restore (cr); } commit 8f8d057f061892413cc84a43be781835c6ca909c Author: Benjamin Otte <otte at gnome.org> Date: Tue Nov 6 21:47:18 2007 +0100...