search for: tag_func_define_edit_text

Displaying 16 results from an estimated 16 matches for "tag_func_define_edit_text".

2008 May 03
1
[Bug 15814] New: unable to view new york times feature
...rk Times feature. Sample output: eve:[~/Projects/swfdec/swfdec]% player/swfplay -t ~/Desktop/mmsp.swf 2>&1 | head -1000 SWFDEC: WARN : swfdec_swf_decoder.c(342): swfdec_swf_decoder_parse_one: tag function not implemented for 73 DefineFontAlignZones SWFDEC: FIXME: swfdec_text_field.c(144): tag_func_define_edit_text: Using embed fonts in TextField is not supported SWFDEC: WARN : swfdec_swf_decoder.c(342): swfdec_swf_decoder_parse_one: tag function not implemented for 74 CSMTextSettings SWFDEC: FIXME: swfdec_text_field.c(144): tag_func_define_edit_text: Using embed fonts in TextField is not supported SWFDEC: WA...
2007 Jun 15
0
Branch 'as' - 5 commits - libswfdec/swfdec_as_native_function.c libswfdec/swfdec_edittext.c libswfdec/swfdec_edittext.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_morphshape.h
...DefineText) and it prepares for the sprite handling rework. diff --git a/libswfdec/swfdec_edittext.c b/libswfdec/swfdec_edittext.c index 9d12274..ed641e8 100644 --- a/libswfdec/swfdec_edittext.c +++ b/libswfdec/swfdec_edittext.c @@ -83,7 +83,7 @@ swfdec_edit_text_init (SwfdecEditText * } int -tag_func_define_edit_text (SwfdecSwfDecoder * s) +tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) { SwfdecEditText *text; guint id; diff --git a/libswfdec/swfdec_edittext.h b/libswfdec/swfdec_edittext.h index 0bf5c27..be38c4d 100644 --- a/libswfdec/swfdec_edittext.h +++ b/libswfdec/swfdec_edittext.h @@ -7...
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...nenum >= text->scroll) { - cairo_rel_move_to (cr, 0, layout->height - skipped); - y += layout->height - skipped; - skipped = 0; - } - } - - for (i = 0; layouts[i].layout != NULL; i++) { - g_object_unref (layouts[i].layout); - } - - g_free (layouts); -} - - int tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) { diff --git a/libswfdec/swfdec_text_field.h b/libswfdec/swfdec_text_field.h index f3cd10d..a6220f3 100644 --- a/libswfdec/swfdec_text_field.h +++ b/libswfdec/swfdec_text_field.h @@ -123,19 +123,5 @@ GType swfdec_text_field_get_type (void); int tag_func_defin...
2007 Nov 22
0
5 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field.c
...named %s", s->parse_sprite->parse_frame, frame->label); return SWFDEC_STATUS_OK; diff --git a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c index f7bf2cf..91af056 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -185,14 +185,14 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) text->leading = swfdec_bits_get_s16 (b); } - text->variable = swfdec_bits_get_string_with_version (b, s->version); + text->variable = swfdec_bits_get_string (b, s->version); if (text->variable && *text->variable == 0) {...
2007 Nov 02
0
5 commits - libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
...lampila at iki.fi> Date: Fri Nov 2 11:45:43 2007 +0200 Clean up color handling in TextField diff --git a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c index 77fa7ff..2a1436d 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -151,7 +151,7 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) SWFDEC_LOG (" color = %u", text->color); } else { SWFDEC_WARNING ("FIXME: figure out default color"); - text->color = SWFDEC_COLOR_COMBINE (255, 255, 255, 255); + text->color = SWFDEC_COLOR_COMBINE (255, 255, 255, 0)...
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
...-62,6 +62,8 @@ swfdec_text_field_dispose (GObject *object) text->text_input = NULL; g_free (text->variable); text->variable = NULL; + g_free (text->font); + text->font = NULL; G_OBJECT_CLASS (swfdec_text_field_parent_class)->dispose (object); } @@ -396,7 +398,7 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) font = swfdec_swf_decoder_get_character (s, id); if (SWFDEC_IS_FONT (font)) { SWFDEC_LOG (" font = %u", id); - text->font = SWFDEC_FONT (font); + text->font = g_strdup (SWFDEC_FONT (font)->name); } else { S...
2007 Oct 13
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c test/trace
...32:12 2007 +0300 Print FIXME about not supporting embedFonts only once when setting the property diff --git a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c index 2788cfc..485d3b2 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -337,6 +337,8 @@ tag_func_define_edit_text (SwfdecSwfDeco reserved = swfdec_bits_getbit (b); text->html = swfdec_bits_getbit (b); text->embed_fonts = swfdec_bits_getbit (b); + if (text->embed_fonts) + SWFDEC_FIXME ("Using embed fonts in TextField is not supported"); if (has_font) { SwfdecCharacter *fo...
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
...igned int level); +void swfdec_debug_set_level (guint level); int swfdec_debug_get_level (void); #endif diff --git a/libswfdec/swfdec_edittext.c b/libswfdec/swfdec_edittext.c index 37727eb..151feb2 100644 --- a/libswfdec/swfdec_edittext.c +++ b/libswfdec/swfdec_edittext.c @@ -97,7 +97,7 @@ int tag_func_define_edit_text (SwfdecSwfDecoder * s) { SwfdecEditText *text; - unsigned int id; + guint id; int reserved, use_outlines; gboolean has_font, has_color, has_max_length, has_layout, has_text; SwfdecBits *b = &s->b; @@ -154,7 +154,7 @@ tag_func_define_edit_text (SwfdecSwfDeco text->max_l...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...g_list_free (layouts); + g_free (layouts); } diff --git a/libswfdec/swfdec_text_field.h b/libswfdec/swfdec_text_field.h index 938dbfd..1609a52 100644 --- a/libswfdec/swfdec_text_field.h +++ b/libswfdec/swfdec_text_field.h @@ -123,11 +123,12 @@ GType swfdec_text_field_get_type (void); int tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag); -GList * swfdec_text_field_generate_layouts (SwfdecTextField * text, +SwfdecLayout * swfdec_text_field_generate_layouts (SwfdecTextField * text, cairo_t * cr, const SwfdecParagraph * paragraphs, const SwfdecColorTransfo...
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
...igned int level); +void swfdec_debug_set_level (guint level); int swfdec_debug_get_level (void); #endif diff --git a/libswfdec/swfdec_edittext.c b/libswfdec/swfdec_edittext.c index 37727eb..151feb2 100644 --- a/libswfdec/swfdec_edittext.c +++ b/libswfdec/swfdec_edittext.c @@ -97,7 +97,7 @@ int tag_func_define_edit_text (SwfdecSwfDecoder * s) { SwfdecEditText *text; - unsigned int id; + guint id; int reserved, use_outlines; gboolean has_font, has_color, has_max_length, has_layout, has_text; SwfdecBits *b = &s->b; @@ -154,7 +154,7 @@ tag_func_define_edit_text (SwfdecSwfDeco text->max_l...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...c_text_field.c index a594bbd..064dcd0 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -83,7 +83,6 @@ static void swfdec_text_field_init (SwfdecTextField * text) { text->scroll = 1; - text->max_length = G_MAXUINT; } SwfdecLayout * @@ -434,7 +433,9 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) text->color = SWFDEC_COLOR_COMBINE (255, 255, 255, 255); } if (has_max_length) { - text->max_length = swfdec_bits_get_u16 (b); + text->max_chars = swfdec_bits_get_u16 (b); + } else { + text->max_chars = 0; } if (has_layout) {...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...ject); - if (text->text_input != NULL) { - g_free (text->text_input); - text->text_input = NULL; + if (text->input != NULL) { + g_free (text->input); + text->input = NULL; } if (text->variable != NULL) { g_free (text->variable); @@ -109,6 +110,7 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) SWFDEC_GRAPHIC (text)->extents.x0, SWFDEC_GRAPHIC (text)->extents.y0, SWFDEC_GRAPHIC (text)->extents.x1, SWFDEC_GRAPHIC (text)->extents.y1); swfdec_bits_syncbits (b); + has_text = swfdec_bits_getbit (b); text->word_wrap = swfde...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...r start, SwfdecColor end, unsigned int ratio); void swfdec_color_set_source (cairo_t *cr, SwfdecColor color); diff --git a/libswfdec/swfdec_edittext.c b/libswfdec/swfdec_edittext.c index d38b33a..37727eb 100644 --- a/libswfdec/swfdec_edittext.c +++ b/libswfdec/swfdec_edittext.c @@ -148,7 +148,7 @@ tag_func_define_edit_text (SwfdecSwfDeco SWFDEC_LOG (" color = %u", text->color); } else { SWFDEC_WARNING ("FIXME: figure out default color"); - text->color = SWF_COLOR_COMBINE (255, 255, 255, 255); + text->color = SWFDEC_COLOR_COMBINE (255, 255, 255, 255); } if (has_ma...
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
...r start, SwfdecColor end, unsigned int ratio); void swfdec_color_set_source (cairo_t *cr, SwfdecColor color); diff --git a/libswfdec/swfdec_edittext.c b/libswfdec/swfdec_edittext.c index d38b33a..37727eb 100644 --- a/libswfdec/swfdec_edittext.c +++ b/libswfdec/swfdec_edittext.c @@ -148,7 +148,7 @@ tag_func_define_edit_text (SwfdecSwfDeco SWFDEC_LOG (" color = %u", text->color); } else { SWFDEC_WARNING ("FIXME: figure out default color"); - text->color = SWF_COLOR_COMBINE (255, 255, 255, 255); + text->color = SWFDEC_COLOR_COMBINE (255, 255, 255, 255); } if (has_ma...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...le) - return; - s = strrchr (text->variable, '.'); - if (s) { - guint len = s - text->variable; - text->variable_prefix = g_strndup (text->variable, len); - text->variable_name = s + 1; - } else { - text->variable_name = text->variable; - } -} - int tag_func_define_edit_text (SwfdecSwfDecoder * s) { @@ -178,7 +167,6 @@ tag_func_define_edit_text (SwfdecSwfDeco text->spacing = swfdec_bits_get_s16 (b); } text->variable = swfdec_bits_get_string (b); - swfdec_edit_text_parse_variable (text); if (has_text) text->text = swfdec_bits_get_string (b)...
2007 Oct 22
0
12 commits - libswfdec/swfdec_as_strings.c 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_text_field_movie.h test/trace
...es while (data.tags_closed != NULL) { ParserTag *tag = (ParserTag *)data.tags_closed->data; diff --git a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c index 7b5c688..a11e2f1 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -113,7 +113,7 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) text->word_wrap = swfdec_bits_getbit (b); text->multiline = swfdec_bits_getbit (b); text->password = swfdec_bits_getbit (b); - text->input = !swfdec_bits_getbit (b); + text->editable = !swfdec_bits_getbit (b); has_color = swfdec_bits_ge...