Displaying 2 results from an estimated 2 matches for "width_max".
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
...ll (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);
+    text->scroll_bottom = text->scroll + (visible > 0 ? visible - 1 : 0);
+    text->hscroll = CLAMP(text-&g...
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
....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 - width)) {
+    text->hscroll_max = SWFDEC_TWIPS_TO_DOUBLE (width_max - width);
+...