search for: scroll_max

Displaying 4 results from an estimated 4 matches for "scroll_max".

2007 Nov 07
0
2 commits - libswfdec/swfdec_resource.c libswfdec/swfdec_text_field_movie.c
...-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_movie_render (SwfdecMovie *movie, cairo_t *cr, iter_line = pango_layout_get_iter (layout->layout); - if (layout-&gt...
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
...Movie *text) +swfdec_text_field_movie_update_scroll (SwfdecTextFieldMovie *text, + gboolean check_limits) { SwfdecLayout *layouts; int i, num, y, visible, all, height; @@ -729,11 +730,16 @@ swfdec_text_field_movie_update_scroll (SwfdecTextFieldMovie *text) layouts = NULL; text->scroll_max = all - visible + 1; - text->scroll = CLAMP(text->scroll, 1, text->scroll_max); - text->scroll_bottom = text->scroll + (visible > 0 ? visible - 1 : 0); - text->hscroll_max = SWFDEC_TWIPS_TO_DOUBLE (width_max - width); - text->hscroll = CLAMP(text->hscroll, 0, text-&...
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
...d_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)) cairo_rel_move_to (cr, 0, layout->la...
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
...ield_movie.c index 93ac9aa..021b8ad 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -729,16 +729,36 @@ swfdec_text_field_movie_update_scroll (SwfdecTextFieldMovie *text, swfdec_text_field_movie_free_layouts (layouts); layouts = NULL; - text->scroll_max = all - visible + 1; - text->hscroll_max = SWFDEC_TWIPS_TO_DOUBLE (width_max - width); + if (text->scroll_max != all - visible + 1) { + text->scroll_max = all - visible + 1; + text->scroll_changed = TRUE; + } + if (text->hscroll_max != SWFDEC_TWIPS_TO_DOUBLE (width_max - wi...