search for: cairo_matrix_scale

Displaying 7 results from an estimated 7 matches for "cairo_matrix_scale".

2007 Jul 11
0
libswfdec/swfdec_movie.c
...swfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -143,8 +143,10 @@ swfdec_movie_update_matrix (SwfdecMovie d = movie->xscale / swfdec_matrix_get_xscale (&movie->content->transform); e = movie->yscale / swfdec_matrix_get_yscale (&movie->content->transform); cairo_matrix_scale (&movie->matrix, d, e); - d = movie->rotation - swfdec_matrix_get_rotation (&movie->content->transform); - cairo_matrix_rotate (&movie->matrix, d * G_PI / 180); + if (finite (movie->rotation)) { + d = movie->rotation - swfdec_matrix_get_rotation (&movie-&g...
2007 Jul 11
0
Branch 'as' - 3 commits - libswfdec/swfdec_bits.c
...swfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -143,8 +143,10 @@ swfdec_movie_update_matrix (SwfdecMovie d = movie->xscale / swfdec_matrix_get_xscale (&movie->content->transform); e = movie->yscale / swfdec_matrix_get_yscale (&movie->content->transform); cairo_matrix_scale (&movie->matrix, d, e); - d = movie->rotation - swfdec_matrix_get_rotation (&movie->content->transform); - cairo_matrix_rotate (&movie->matrix, d * G_PI / 180); + if (finite (movie->rotation)) { + d = movie->rotation - swfdec_matrix_get_rotation (&movie-&g...
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
...n does not call valueOf in the right order */ + if (swfdec_as_object_get_variable (o, SWFDEC_AS_STR_matrixType, &val)) { + const char *s = swfdec_as_value_to_string (cx, &val); + cairo_matrix_init_translate (mat, SWFDEC_TWIPS_SCALE_FACTOR / 2.0, SWFDEC_TWIPS_SCALE_FACTOR / 2.0); + cairo_matrix_scale (mat, SWFDEC_TWIPS_SCALE_FACTOR / 32768.0, SWFDEC_TWIPS_SCALE_FACTOR / 32768.0); + if (s == SWFDEC_AS_STR_box) { + double x, y, w, h, r; + cairo_matrix_t input; + swfdec_as_object_get_variable (o, SWFDEC_AS_STR_x, &val); + x = swfdec_as_value_to_number (cx, &val); +...
2007 Jul 11
0
Branch 'as' - 4 commits - libswfdec/swfdec_color.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c test/trace
...a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -152,8 +152,10 @@ swfdec_movie_update_matrix (SwfdecMovie d = movie->xscale / swfdec_matrix_get_xscale (&movie->original_transform); e = movie->yscale / swfdec_matrix_get_yscale (&movie->original_transform); cairo_matrix_scale (&movie->matrix, d, e); - d = movie->rotation - swfdec_matrix_get_rotation (&movie->original_transform); - cairo_matrix_rotate (&movie->matrix, d * G_PI / 180); + if (isfinite (movie->rotation)) { + d = movie->rotation - swfdec_matrix_get_rotation (&movie-&gt...
2007 Feb 15
0
8 commits - libswfdec/swfdec_bits.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_tag.c libswfdec/swfdec_text.c libswfdec/swfdec_text.h test/swfedit_token.c test/various
...tmpy = tmpy * glyph->font->scale_factor / glyph->height; if (swfdec_graphic_mouse_in (SWFDEC_GRAPHIC (shape), tmpx, tmpy)) return TRUE; } @@ -87,8 +87,8 @@ swfdec_text_render (SwfdecGraphic *graph cairo_matrix_init_translate (&pos, glyph->x, glyph->y); cairo_matrix_scale (&pos, - glyph->height / SWFDEC_TEXT_SCALE_FACTOR, - glyph->height / SWFDEC_TEXT_SCALE_FACTOR); + (double) glyph->height / glyph->font->scale_factor, + (double) glyph->height / glyph->font->scale_factor); cairo_save (cr); cairo_transform (cr, &pos);...
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
...0, 0, 0, 16384 / 256.0); - else + if (gradient->radial) { + pattern = cairo_pattern_create_radial ((16384.0 / 256.0) * gradient->focus, + 0, 0, 0, 0, 16384 / 256.0); + } else { pattern = cairo_pattern_create_linear (-16384.0 / 256.0, 0, 16384.0 / 256.0, 0); + } cairo_matrix_scale (&mat, 1 / 256.0, 1 / 256.0); mat.x0 /= 256.0; mat.y0 /= 256.0; @@ -289,16 +292,22 @@ swfdec_pattern_do_parse (SwfdecSwfDecode } SWFDEC_COLOR_PATTERN (pattern)->end_color = SWFDEC_COLOR_PATTERN (pattern)->start_color; SWFDEC_LOG (" color %08x", SWFDEC...
2007 Jun 13
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c
...e->content->transform); - e = movie->yscale / swfdec_matrix_get_yscale (&movie->content->transform); + d = movie->xscale / swfdec_matrix_get_xscale (&movie->original_transform); + e = movie->yscale / swfdec_matrix_get_yscale (&movie->original_transform); cairo_matrix_scale (&movie->matrix, d, e); - d = movie->rotation - swfdec_matrix_get_rotation (&movie->content->transform); + d = movie->rotation - swfdec_matrix_get_rotation (&movie->original_transform); cairo_matrix_rotate (&movie->matrix, d * G_PI / 180); swfdec_matrix_...