Displaying 3 results from an estimated 3 matches for "color_p".
2007 Nov 07
0
2 commits - libswfdec/swfdec_resource.c libswfdec/swfdec_text_field_movie.c
...*movie, cairo_t *cr,
iter_line = pango_layout_get_iter (layout->layout);
- if (layout->bullet && linenum + 1 >= text_movie->scroll) {
+ if (layout->bullet && linenum + 1 >=
+ MIN (text_movie->scroll, text_movie->scroll_max)) {
PangoColor color_p;
PangoAttribute *attr;
PangoAttrIterator *attr_iter;
@@ -794,13 +801,13 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
skipped = 0;
do {
- if (++linenum < text_movie->scroll)
+ if (++linenum < MIN (text_movie->scroll, text_movie-&...
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
...yout != NULL && y < limit.y1; i++)
{
@@ -760,6 +761,37 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
iter_line = pango_layout_get_iter (layout->layout);
+ if (layout->bullet && linenum + 1 >= text_movie->scroll) {
+ PangoColor color_p;
+ PangoAttribute *attr;
+ PangoAttrIterator *attr_iter;
+
+ pango_layout_iter_get_line_extents (iter_line, NULL, &rect);
+ pango_extents_to_pixels (NULL, &rect);
+
+ cairo_new_sub_path (cr);
+
+ // get current color
+ attr_iter = pango_attr_list_get_itera...
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
...ndex <= index_)
+ continue;
+
+ attr = pango_attribute_copy ((PangoAttribute *)iter->data);
+
+ if (attr->klass->type == PANGO_ATTR_FOREGROUND && trans != NULL &&
+ !swfdec_color_transform_is_identity (trans))
+ {
+ SwfdecColor color;
+ PangoColor color_p;
+
+ color_p = ((PangoAttrColor *)attr)->color;
+
+ color = SWFDEC_COLOR_COMBINE (color_p.red >> 8, color_p.green >> 8,
+ color_p.blue >> 8, 255);
+ color = swfdec_color_apply_transform (color, trans);
+
+ color_p.red = SWFDEC_COLOR_R (color) << 8;
+...