Displaying 12 results from an estimated 12 matches for "text_movie".
2007 Nov 07
0
2 commits - libswfdec/swfdec_resource.c libswfdec/swfdec_text_field_movie.c
...= TRUE;
+ } else {
+ paragraph->newline = FALSE;
+ }
paragraph->blocks = NULL;
paragraph->attrs = NULL;
@@ -748,7 +753,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
first = TRUE;
linenum = 0;
- x = movie->original_extents.x0 + EXTRA_MARGIN + text_movie->hscroll;
+ x = movie->original_extents.x0 + EXTRA_MARGIN +
+ MIN (text_movie->hscroll, text_movie->hscroll_max);
y = movie->original_extents.y0 + EXTRA_MARGIN;
for (i = 0; layouts[i].layout != NULL && y < limit.y1; i++)
@@ -761,7 +767,8 @@ swfdec_text_field_mo...
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...return (SwfdecLayout *)g_array_free (layouts, FALSE);
+}
+
+
static void
swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
const SwfdecColorTransform *trans, const SwfdecRect *inval)
{
- SwfdecTextFieldMovie *text = SWFDEC_TEXT_FIELD_MOVIE (movie);
+ SwfdecTextFieldMovie *text_movie;
+ SwfdecTextField *text;
+ SwfdecLayout *layouts;
+ SwfdecRect limit;
+ SwfdecColor color;
+ const SwfdecParagraph *paragraphs;
+ int i, y, x, linenum;
+ gboolean first;
+
+ g_return_if_fail (SWFDEC_IS_TEXT_FIELD_MOVIE (movie));
+ g_return_if_fail (cr != NULL);
+ g_return_if_fail (trans...
2007 Dec 05
0
4 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_policy_loader.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_format.c
...00644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -807,8 +807,6 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
cairo_fill (cr);
}
- cairo_move_to (cr, x, y);
-
skipped = 0;
do {
if (++linenum < MIN (text_movie->scroll, text_movie->scroll_max))
@@ -833,21 +831,18 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
x + layout->offset_x + rect.x + rect.width < limit.x0)
continue;
+ cairo_move_to (cr, x, y);
+
if (pango_layout_iter_at_last_line (iter_line))
c...
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 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
...5f..453025a 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -619,7 +619,7 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
first = TRUE;
linenum = 0;
- x = movie->original_extents.x0;
+ x = movie->original_extents.x0 + text_movie->hscroll;
y = movie->original_extents.y0 + 1;
cairo_move_to (cr, x, y);
commit 5cf24956515d939dd04364520fb3b7a6688659b2
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Thu Oct 18 01:18:15 2007 +0300
Add hscroll property to TextField object
diff --git a/libswfdec/sw...
2007 Nov 01
0
2 commits - libswfdec/swfdec_text_field_movie.c test/image
...ld_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -593,7 +593,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
if (text->background) {
cairo_rectangle (cr, limit.x0, limit.y0, limit.x1 - limit.x0, limit.y1 - limit.y0);
color = swfdec_color_apply_transform (text_movie->background_color, trans);
- swfdec_color_set_source (cr, 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,
mo...
2007 Nov 04
0
7 commits - libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h libswfdec/swfdec_text_field_movie_html.c
...+ int baseline =
+ swfdec_text_field_movie_layout_get_last_line_baseline (playout);
+ layout.last_line_offset_y = ascent - baseline;
layout.height = ascent + descent;
}
}
@@ -719,8 +759,7 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
if (linenum == text_movie->scroll)
skipped = rect.y;
- if (!first &&
- y + rect.y + rect.height > movie->original_extents.y1)
+ if (!first && y + rect.y + rect.height > movie->original_extents.y1)
break;
first = FALSE;
@@ -733,12 +772,16 @@ swfdec_text_field_movie_re...
2007 Nov 01
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie.c test/image
...d_movie_render (SwfdecMovie *movie, cairo_t *cr,
cairo_clip (cr);
if (text->background) {
- cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1);
+ cairo_rectangle (cr, limit.x0, limit.y0, limit.x1 - limit.x0, limit.y1 - limit.y0);
color = swfdec_color_apply_transform (text_movie->background_color, trans);
swfdec_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_rectan...
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
...t = paragraphs[i].bullet;
} else {
pango_layout_set_indent (playout, 0);
+ layout.bullet = FALSE;
}
// set block styles
@@ -748,7 +750,6 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
linenum = 0;
x = movie->original_extents.x0 + EXTRA_MARGIN + text_movie->hscroll;
y = movie->original_extents.y0 + EXTRA_MARGIN;
- cairo_move_to (cr, x, y);
for (i = 0; layouts[i].layout != NULL && y < limit.y1; i++)
{
@@ -760,6 +761,37 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
iter_line = pango_layout_get_i...
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
...fdec_text_field_movie.c
index c071666..b56466d 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -611,7 +611,7 @@ swfdec_text_field_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 <p...
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
..._TYPE_MOVIE)
+#define EXTRA_MARGIN 2
+
static void
swfdec_text_field_movie_update_extents (SwfdecMovie *movie,
SwfdecRect *extents)
@@ -611,8 +613,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
first = TRUE;
linenum = 0;
- x = movie->original_extents.x0 + text_movie->hscroll;
- y = movie->original_extents.y0 + 1;
+ x = movie->original_extents.x0 + EXTRA_MARGIN + text_movie->hscroll;
+ y = movie->original_extents.y0 + EXTRA_MARGIN;
cairo_move_to (cr, x, y);
for (i = 0; layouts[i].layout != NULL/* && y < limit.y1*/; i++)
@@ -...
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
...b/libswfdec/swfdec_text_field_movie.c
@@ -717,6 +717,10 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
g_return_if_fail (trans != NULL);
g_return_if_fail (inval != NULL);
+ /* textfields don't mask */
+ if (swfdec_color_transform_is_mask (trans))
+ return;
+
text_movie = SWFDEC_TEXT_FIELD_MOVIE (movie);
text = SWFDEC_TEXT_FIELD (movie->graphic);
commit ec1c5c6001cd2ddbb5cb58cb865dbf931af8a377
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Nov 20 10:21:32 2007 +0100
fix warning about sign comparison on 32bit
diff --git a/libswfdec/swfdec...