search for: swfdec_rect_intersect

Displaying 9 results from an estimated 9 matches for "swfdec_rect_intersect".

2007 Oct 14
1
libswfdec/swfdec_text_field.c
libswfdec/swfdec_text_field.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) New commits: commit 13a1f11d9aebddc8d2e24c94878547589c485832 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sun Oct 14 18:22:17 2007 +0300 Implement aligning TextField lines even when wordWrap is off diff --git a/libswfdec/swfdec_text_field.c
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...uts; - SwfdecRect limit; - SwfdecColor color; - int i, y, x, linenum; - gboolean first; - - g_return_if_fail (SWFDEC_IS_TEXT_FIELD (text)); - g_return_if_fail (cr != NULL); - g_return_if_fail (paragraphs != NULL); - g_return_if_fail (trans != NULL); - g_return_if_fail (inval != NULL); - - swfdec_rect_intersect (&limit, &SWFDEC_GRAPHIC (text)->extents, inval); - - cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1); - cairo_clip (cr); - - if (text->background) { - cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1); - color = swfdec_color_apply_transform (backgroun...
2007 Aug 17
0
3 commits - libswfdec/swfdec_sprite_movie_as.c test/trace
...ndex f18597c..5eea43f 100644 --- a/libswfdec/swfdec_sprite_movie_as.c +++ b/libswfdec/swfdec_sprite_movie_as.c @@ -208,8 +208,31 @@ swfdec_sprite_movie_hitTest (SwfdecAsCon SWFDEC_OBJECT (other)->extents.x1, SWFDEC_OBJECT (other)->extents.y1); #endif SWFDEC_AS_VALUE_SET_BOOLEAN (rval, swfdec_rect_intersect (NULL, &movie_rect, &other_rect)); + } else if (argc >= 2) { + SwfdecRect movie_rect; + double x, y; + + x = swfdec_as_value_to_number (cx, &argv[0]); + y = swfdec_as_value_to_number (cx, &argv[1]); + + if (argc >= 3) { + if (swfdec_as_value_to_boolean (cx...
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
...CT (movie)->extents.x0, SWFDEC_OBJECT (movie)->extents.y0, @@ -326,7 +355,7 @@ mc_hitTest (JSContext *cx, JSObject *obj SWFDEC_OBJECT (other)->extents.x0, SWFDEC_OBJECT (other)->extents.y0, SWFDEC_OBJECT (other)->extents.x1, SWFDEC_OBJECT (other)->extents.y1); #endif - if (swfdec_rect_intersect (NULL, &movie->extents, &other->extents)) { + if (swfdec_rect_intersect (NULL, &movie_rect, &other_rect)) { *rval = BOOLEAN_TO_JSVAL (JS_TRUE); } else { *rval = BOOLEAN_TO_JSVAL (JS_FALSE); diff-tree ef3becaadc12e3167a7c02a4a8185bf02d9737e2 (from f2fadf23...
2007 Oct 14
0
10 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...decColor color; - int y, y_min, y_max; + int y; g_return_if_fail (SWFDEC_IS_TEXT_FIELD (text)); g_return_if_fail (cr != NULL); @@ -261,10 +262,10 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr, g_return_if_fail (trans != NULL); g_return_if_fail (inval != NULL); + swfdec_rect_intersect (&limit, &SWFDEC_GRAPHIC (text)->extents, inval); + if (text->background) { - cairo_rectangle (cr, SWFDEC_GRAPHIC (text)->extents.x0, - SWFDEC_GRAPHIC (text)->extents.y0, SWFDEC_GRAPHIC (text)->extents.x1, - SWFDEC_GRAPHIC (text)->extents.y1); + cairo_rectangle (c...
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...>extents; + if (movie->parent) + swfdec_movie_rect_local_to_global (movie->parent, &movie_rect); + other_rect = other->extents; + if (other->parent) + swfdec_movie_rect_local_to_global (other->parent, &other_rect); SWFDEC_AS_VALUE_SET_BOOLEAN (rval, swfdec_rect_intersect (NULL, &movie_rect, &other_rect)); } else if (argc >= 2) { - SwfdecRect movie_rect; double x, y; + gboolean shape, ret; - x = swfdec_as_value_to_number (cx, &argv[0]); - y = swfdec_as_value_to_number (cx, &argv[1]); + x = swfdec_as_value_to_number (cx, &a...
2007 Oct 18
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...FIELD_MOVIE (movie); text = SWFDEC_TEXT_FIELD (movie->graphic); - if (text_movie->paragraphs == NULL) - swfdec_text_field_movie_generate_paragraphs (text_movie); - paragraphs = text_movie->paragraphs; + paragraphs = swfdec_text_field_movie_get_paragraphs (text_movie, NULL); swfdec_rect_intersect (&limit, &movie->original_extents, inval); @@ -558,8 +615,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, cairo_stroke (cr); } - layouts = swfdec_text_field_movie_generate_layouts (text, cr, paragraphs, - trans, inval, NULL); + layouts = swfdec_te...
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
...r (SwfdecMovie *movie, cairo_t *cr, g_return_if_fail (color_transform != NULL); g_return_if_fail (inval != NULL); + if (movie->mask_of != NULL) { + SWFDEC_LOG ("not rendering %s %p, movie is a mask", + G_OBJECT_TYPE_NAME (movie), movie->name); + return; + } if (!swfdec_rect_intersect (NULL, &movie->extents, inval)) { SWFDEC_LOG ("not rendering %s %s, extents %g %g %g %g are not in invalid area %g %g %g %g", G_OBJECT_TYPE_NAME (movie), movie->name, @@ -809,7 +814,11 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr, return; } - cair...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...ndex f18597c..5eea43f 100644 --- a/libswfdec/swfdec_sprite_movie_as.c +++ b/libswfdec/swfdec_sprite_movie_as.c @@ -208,8 +208,31 @@ swfdec_sprite_movie_hitTest (SwfdecAsCon SWFDEC_OBJECT (other)->extents.x1, SWFDEC_OBJECT (other)->extents.y1); #endif SWFDEC_AS_VALUE_SET_BOOLEAN (rval, swfdec_rect_intersect (NULL, &movie_rect, &other_rect)); + } else if (argc >= 2) { + SwfdecRect movie_rect; + double x, y; + + x = swfdec_as_value_to_number (cx, &argv[0]); + y = swfdec_as_value_to_number (cx, &argv[1]); + + if (argc >= 3) { + if (swfdec_as_value_to_boolean (cx...