Index: pango/pangoxft-render.c
===================================================================
RCS file: /cvs/gnome/pango/pango/pangoxft-render.c,v
retrieving revision 1.5
diff -p -u -d -p -u -d -r1.5 pangoxft-render.c
--- pango/pangoxft-render.c	3 Mar 2005 19:40:18 -0000	1.5
+++ pango/pangoxft-render.c	8 Mar 2005 16:22:34 -0000
@@ -33,6 +33,7 @@ enum {
 struct _PangoXftRendererPrivate
 {
   PangoColor default_color;
+  guint16 alpha;
 
   Picture src_picture;
   Picture dest_picture;
@@ -489,6 +490,15 @@ pango_xft_renderer_end (PangoRenderer *r
 }
 
 static void
+pango_xft_renderer_set_alpha (PangoXftRenderer *xftrenderer,
+			      guint16 alpha)
+{
+  g_return_if_fail (PANGO_IS_XFT_RENDERER (xftrenderer));
+		    
+  xftrenderer->priv->alpha = alpha;
+}
+
+static void
 pango_xft_renderer_real_composite_trapezoids (PangoXftRenderer *xftrenderer,
 					      PangoRenderPart   part,
 					      XTrapezoid       *trapezoids,
@@ -516,7 +526,8 @@ pango_xft_renderer_real_composite_trapez
       xft_color.color.red = color->red;
       xft_color.color.green = color->green;
       xft_color.color.blue = color->blue;
-      xft_color.color.alpha = 0xffff;
+      xft_color.color.alpha = xftrenderer->priv->alpha;
+      pango_xft_renderer_set_alpha(xftrenderer, 0xffff);
 
       src_picture = XftDrawSrcPicture (xftrenderer->draw, &xft_color);
       dest_picture = XftDrawPicture (xftrenderer->draw);
@@ -555,7 +566,8 @@ pango_xft_renderer_real_composite_glyphs
       xft_color.color.red = color->red;
       xft_color.color.green = color->green;
       xft_color.color.blue = color->blue;
-      xft_color.color.alpha = 0xffff;
+      xft_color.color.alpha = xftrenderer->priv->alpha;
+      pango_xft_renderer_set_alpha(xftrenderer, 0xffff);
 
       XftDrawGlyphSpec (xftrenderer->draw, &xft_color,
 			xft_font,
@@ -579,6 +591,7 @@ get_renderer (PangoFontMap *fontmap,
   pango_color.green = color->color.green;
   pango_color.blue = color->color.blue;
   pango_xft_renderer_set_default_color (PANGO_XFT_RENDERER (renderer), &pango_color);
+  pango_xft_renderer_set_alpha (PANGO_XFT_RENDERER (renderer), color->color.alpha);
 
   return renderer;
 }
