Displaying 4 results from an estimated 4 matches for "cairo_transform".
2008 Jan 02
0
3 commits - libswfdec/swfdec_movie.c test/trace
...ovie.c b/libswfdec/swfdec_movie.c
index 400ca2e..547155b 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -950,12 +950,20 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr,
cairo_pattern_t *mask;
if (movie->parent == movie->masked_by->parent) {
cairo_transform (cr, &movie->inverse_matrix);
+ rect = *inval;
} else {
- cairo_matrix_t mat;
+ cairo_matrix_t mat, mat2;
swfdec_movie_local_to_global_matrix (movie, &mat);
+ swfdec_movie_global_to_local_matrix (movie->masked_by, &mat2);
+ cairo_matrix_multipl...
2007 Nov 20
0
4 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/image test/trace
...vie->parent;
+ }
+}
+
+void
swfdec_movie_global_to_local (SwfdecMovie *movie, double *x, double *y)
{
g_return_if_fail (SWFDEC_IS_MOVIE (movie));
@@ -876,7 +902,11 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr,
if (movie->parent == movie->masked_by->parent) {
cairo_transform (cr, &movie->inverse_matrix);
} else {
- SWFDEC_FIXME ("implement different parents when masking");
+ cairo_matrix_t mat;
+ swfdec_movie_local_to_global_matrix (movie, &mat);
+ cairo_transform (cr, &mat);
+ swfdec_movie_global_to_local_matrix (...
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
...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);
if (!cairo_matrix_invert (&pos)) {
diff-tree 3b4d3b8ffde2921b618208ff0fed436ec92817ba (from 13fa4a30d778a08db73566355332f7065443cdf5)
Author: Benjamin Otte <otte@gnome.org>
Date: Thu Feb 15 13:40:24 2007 +0100
rework tag_func_define_font to be more pedantic
di...
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
...e {
- cairo_save (cr);
}
group = swfdec_movie_needs_group (movie);
if (group) {
@@ -867,6 +873,11 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr,
}
if (movie->masked_by) {
cairo_pattern_t *mask;
+ if (movie->parent == movie->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 6f...