search for: extra_margin

Displaying 5 results from an estimated 5 matches for "extra_margin".

2007 Oct 29
0
libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...E_FACTOR - *height % SWFDEC_TWIPS_SCALE_FACTOR; + swfdec_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_mov...
2007 Nov 07
0
2 commits - libswfdec/swfdec_resource.c libswfdec/swfdec_text_field_movie.c
...ph->newline = 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_...
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
...fdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index 16e58db..90c2990 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -653,7 +653,7 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, y = movie->original_extents.y0 + EXTRA_MARGIN; cairo_move_to (cr, x, y); - for (i = 0; layouts[i].layout != NULL/* && y < limit.y1*/; i++) + for (i = 0; layouts[i].layout != NULL && y < limit.y1; i++) { SwfdecLayout *layout = &layouts[i]; PangoLayoutIter *iter_line;
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
.../libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index b7b0cf2..7bcc6dd 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -38,6 +38,7 @@ G_DEFINE_TYPE (SwfdecTextFieldMovie, swfdec_text_field_movie, SWFDEC_TYPE_MOVIE) #define EXTRA_MARGIN 2 +#define BULLET_MARGIN 36 static void swfdec_text_field_movie_update_extents (SwfdecMovie *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_in...
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
...ibswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index 881327c..f10f529 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -37,6 +37,8 @@ G_DEFINE_TYPE (SwfdecTextFieldMovie, swfdec_text_field_movie, SWFDEC_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...