[CoglPangoDisplayList] Don't store the base color in the display list
authorNeil Roberts <neil@linux.intel.com>
Fri, 5 Jun 2009 17:00:22 +0000 (18:00 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 5 Jun 2009 17:28:27 +0000 (18:28 +0100)
commitea15e4c7f0476e1610e79a990616a467615358db
tree45c2664e75e4c1c9b35594d7c615b04ef7a2f10c
parent6fe22ac8505da2c9a0b7eb97c3a6ea5f3edea95c
[CoglPangoDisplayList] Don't store the base color in the display list

It should be possible render a single PangoLayout with different
colors without recalculating the layout. This was not working because
the color used at the first edit was being stored in the display
list. This broke changing the opacity on a ClutterText.

Now each node in the display list has a 'color override' flag which
marks whether it should use the base color or not. The base color is
now passed in from _cogl_pango_display_list_render_texture. The alpha
value is always taken from the base color.
clutter/pango/cogl-pango-display-list.c
clutter/pango/cogl-pango-display-list.h
clutter/pango/cogl-pango-render.c