Displaying 4 results from an estimated 4 matches for "scroll_bottom".
2007 Nov 07
0
2 commits - libswfdec/swfdec_resource.c libswfdec/swfdec_text_field_movie.c
...oll_max)) {
cairo_rel_move_to (cr, 0, layout->height - skipped);
y += layout->height - skipped;
skipped = 0;
@@ -917,10 +924,9 @@ swfdec_text_field_movie_update_scroll (SwfdecTextFieldMovie *text,
text->scroll_changed = TRUE;
}
} else {
- if (text->scroll_bottom != MAX (CLAMP(text->scroll, 1, text->scroll_max) +
- (visible > 0 ? visible - 1 : 0), text->scroll)) {
- text->scroll_bottom = MAX (CLAMP(text->scroll, 1, text->scroll_max) +
- (visible > 0 ? visible - 1 : 0), text->scroll);
+ if (text->scroll_bottom <...
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
...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->hscroll_max);
+
+ if (check_limits) {
+ text->scroll = CLAMP(text->scroll, 1, text->scroll_max);
+...
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
...if (text->hscroll_max != SWFDEC_TWIPS_TO_DOUBLE (width_max - width)) {
+ text->hscroll_max = SWFDEC_TWIPS_TO_DOUBLE (width_max - width);
+ text->scroll_changed = TRUE;
+ }
if (check_limits) {
- text->scroll = CLAMP(text->scroll, 1, text->scroll_max);
- text->scroll_bottom = text->scroll + (visible > 0 ? visible - 1 : 0);
- text->hscroll = CLAMP(text->hscroll, 0, text->hscroll_max);
+ if (text->scroll != CLAMP(text->scroll, 1, text->scroll_max)) {
+ text->scroll = CLAMP(text->scroll, 1, text->scroll_max);
+ text->sc...
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
...ext->hscroll) {
text->hscroll = value;
text->scroll_changed = TRUE;
- swfdec_movie_invalidate (SWFDEC_MOVIE (text));
+ swfdec_movie_invalidate_last (SWFDEC_MOVIE (text));
}
}
@@ -701,7 +701,7 @@ swfdec_text_field_movie_do_set_scroll (SwfdecAsContext *cx,
text->scroll_bottom += value - text->scroll;
text->scroll = value;
text->scroll_changed = TRUE;
- swfdec_movie_invalidate (SWFDEC_MOVIE (text));
+ swfdec_movie_invalidate_last (SWFDEC_MOVIE (text));
}
}
@@ -809,7 +809,7 @@ swfdec_text_field_movie_set_password (SwfdecAsContext *cx,...