search for: swfdec_double_to_twip

Displaying 13 results from an estimated 13 matches for "swfdec_double_to_twip".

Did you mean: swfdec_double_to_twips
2007 Oct 14
0
5 commits - libswfdec/swfdec_html_parser.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_xml.c libswfdec/swfdec_xml.h
...index 77c2652..e21183a 100644 --- a/libswfdec/swfdec_text_field_movie_as.c +++ b/libswfdec/swfdec_text_field_movie_as.c @@ -737,12 +737,12 @@ swfdec_text_field_movie_createTextField (SwfdecAsContext *cx, edittext->indent = 0; edittext->leading = 0; - edittext->graphic.extents.x0 = SWFDEC_DOUBLE_TO_TWIPS (x); - edittext->graphic.extents.x1 = - edittext->graphic.extents.x0 + SWFDEC_DOUBLE_TO_TWIPS (width); - edittext->graphic.extents.y0 = SWFDEC_DOUBLE_TO_TWIPS (y); - edittext->graphic.extents.y1 = - edittext->graphic.extents.y0 + SWFDEC_DOUBLE_TO_TWIPS (height); + SWFDEC_G...
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
...ct, &movie->matrix); - movie = movie->parent; + if (shape && FALSE) { + ret = swfdec_movie_mouse_in (movie, x, y); + } else { + ret = swfdec_rect_contains (&movie->original_extents, x, y); } - - g_print ("%d %d in { %g %g %g %g }?\n", SWFDEC_DOUBLE_TO_TWIPS (x), - SWFDEC_DOUBLE_TO_TWIPS (y), movie->extents.x0, movie->extents.y0, - movie->extents.x1, movie->extents.y1); - SWFDEC_AS_VALUE_SET_BOOLEAN (rval, swfdec_rect_contains (&movie->extents, - SWFDEC_DOUBLE_TO_TWIPS (x), SWFDEC_DOUBLE_TO_TWIPS (y))); + SWFDEC_AS_VALUE_S...
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...else { + SWFDEC_LOG ("setting background color to %X", color); + /* can't use swfdec_player_set_background_color() here, because the player is locked and doesn't emit signals */ + player->bgcolor = color; + player->bgcolor_set = TRUE; + player->invalid.x0 = SWFDEC_DOUBLE_TO_TWIPS (0.0); + player->invalid.y0 = SWFDEC_DOUBLE_TO_TWIPS (0.0); + player->invalid.x1 = SWFDEC_DOUBLE_TO_TWIPS (player->width); + player->invalid.y1 = SWFDEC_DOUBLE_TO_TWIPS (player->height); + g_object_notify (G_OBJECT (player), "background-color"); + } retur...
2007 Nov 01
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie.c test/image
...c_color_set_source (cr, color); cairo_fill (cr); } if (text->border) { - cairo_rectangle (cr, movie->original_extents.x0, - movie->original_extents.y0, movie->original_extents.x1, - movie->original_extents.y1); + cairo_rectangle (cr, movie->original_extents.x0 + SWFDEC_DOUBLE_TO_TWIPS (1), + movie->original_extents.y0, movie->original_extents.x1 - + movie->original_extents.x0 - SWFDEC_DOUBLE_TO_TWIPS (1), + movie->original_extents.y1 - movie->original_extents.y0 - + SWFDEC_DOUBLE_TO_TWIPS (1)); color = swfdec_color_apply_transform (text_movie->border_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 Oct 29
0
libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...ec_text_field_movie_free_layouts (layouts); } @@ -800,8 +806,8 @@ swfdec_text_field_movie_auto_size (SwfdecTextFieldMovie *text) return FALSE; swfdec_text_field_movie_get_text_size (text, &width, &height); - width += 2 * EXTRA_MARGIN; - height += 2 * EXTRA_MARGIN; + width += SWFDEC_DOUBLE_TO_TWIPS (2 * EXTRA_MARGIN); + height += SWFDEC_DOUBLE_TO_TWIPS (2 * EXTRA_MARGIN); if ((text->text->word_wrap || graphic->extents.x1 - graphic->extents.x0 == width) && diff --git a/libswfdec/swfdec_text_field_movie_as.c b/libswfdec/swfdec_text_field_movie_as.c index dd5203f..24...
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
...ield (SwfdecAsContext *cx, edittext->indent = 0; edittext->leading = 0; - edittext->graphic.extents.x0 = x; - edittext->graphic.extents.x1 = x + width; - edittext->graphic.extents.y0 = y; - edittext->graphic.extents.y1 = y + height; + edittext->graphic.extents.x0 = SWFDEC_DOUBLE_TO_TWIPS (x); + edittext->graphic.extents.x1 = + edittext->graphic.extents.x0 + SWFDEC_DOUBLE_TO_TWIPS (width); + edittext->graphic.extents.y0 = SWFDEC_DOUBLE_TO_TWIPS (y); + edittext->graphic.extents.y1 = + edittext->graphic.extents.y0 + SWFDEC_DOUBLE_TO_TWIPS (height); movie...
2007 Nov 01
0
2 commits - libswfdec/swfdec_text_field_movie.c test/image
...color); + // always use full alpha + swfdec_color_set_source (cr, (color & 0xffffff) + (255 << 24)); cairo_fill (cr); } @@ -604,7 +605,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, 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); + // always use full alpha + swfdec_color_set_source (cr, (color & 0xffffff) + (255 << 24)); cairo_set_line_width (cr, SWFDEC_DOUBLE_TO_TWIPS (1));...
2007 Dec 23
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_character.c libswfdec/swfdec_external_interface.c libswfdec/swfdec.h libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...ect, guint argc, SwfdecAsValue *argv, SwfdecAsValue *rval) { SwfdecMovie *movie; - int x, y; + double x, y; - SWFDEC_AS_CHECK (SWFDEC_TYPE_MOVIE, &movie, "|ii", &x, &y); + SWFDEC_AS_CHECK (SWFDEC_TYPE_MOVIE, &movie, "|nn", &x, &y); x = SWFDEC_DOUBLE_TO_TWIPS (x); y = SWFDEC_DOUBLE_TO_TWIPS (y); @@ -302,9 +302,9 @@ swfdec_sprite_movie_lineTo (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *rval) { SwfdecMovie *movie; - int x, y; + double x, y; - SWFDEC_AS_CHECK (SWFDEC_TYPE_MOVIE, &movie...
2007 Dec 10
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_color_as.c libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_as_drawing.c
...diff --git a/libswfdec/swfdec_movie_asprops.c b/libswfdec/swfdec_movie_asprops.c index 6456aa9..c2985a5 100644 --- a/libswfdec/swfdec_movie_asprops.c +++ b/libswfdec/swfdec_movie_asprops.c @@ -58,8 +58,8 @@ mc_x_set (SwfdecMovie *movie, const SwfdecAsValue *val) movie->modified = TRUE; d = SWFDEC_DOUBLE_TO_TWIPS (d); if (d != movie->matrix.x0) { - movie->matrix.x0 = d; swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_MATRIX); + movie->matrix.x0 = d; } } @@ -86,8 +86,8 @@ mc_y_set (SwfdecMovie *movie, const SwfdecAsValue *val) movie->modified = TRUE; d = SWFDEC_D...
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
..._movie_render (SwfdecMovie *movie, cairo_t *cr, movie->original_extents.y1); color = swfdec_color_apply_transform (text_movie->border_color, trans); swfdec_color_set_source (cr, color); - cairo_set_line_width (cr, 20.0); // FIXME: Is this correct? + cairo_set_line_width (cr, SWFDEC_DOUBLE_TO_TWIPS (1)); cairo_stroke (cr); } commit c7c15478f857113ff9dcf28a5f976f4583d4ec40 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Mon Oct 22 22:36:17 2007 +0300 Fix TextField's background and border displaying, by keeping alpha bits at 255 diff --git a/libswfdec/swfdec_t...
2007 Oct 11
0
10 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_buffer.c libswfdec/swfdec_movie_as_drawing.c test/image test/sound
...draws = g_slist_prepend (movie->draws, movie->draw_fill); + movie->draws = g_slist_append (movie->draws, movie->draw_fill); } SWFDEC_AS_NATIVE (901, 2, swfdec_sprite_movie_beginGradientFill) @@ -181,7 +181,7 @@ swfdec_sprite_movie_lineStyle (SwfdecAsC stroke->start_width = SWFDEC_DOUBLE_TO_TWIPS (width); movie->draw_line = SWFDEC_DRAW (stroke); swfdec_path_move_to (&movie->draw_line->path, movie->draw_x, movie->draw_y); - movie->draws = g_slist_prepend (movie->draws, movie->draw_line); + movie->draws = g_slist_append (movie->draws, movie->draw_...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...cMovie *movie, @@ -543,7 +544,7 @@ swfdec_text_field_movie_get_layouts (SwfdecTextFieldMovie *text, int *num, // set rendering position layout.offset_x = block->left_margin + block->block_indent; if (paragraphs[i].bullet) - layout.offset_x += 36 * 20; + layout.offset_x += SWFDEC_DOUBLE_TO_TWIPS (BULLET_MARGIN); width = SWFDEC_MOVIE (text)->original_extents.x1 - SWFDEC_MOVIE (text)->original_extents.x0 - block->right_margin - @@ -569,9 +570,10 @@ swfdec_text_field_movie_get_layouts (SwfdecTextFieldMovie *text, int *num, // set paragraph styles if (block-&...