]> Dogcows Code - chaz/openbox/commitdiff
clean up comments regarding alpha
authorDana Jansens <danakj@orodu.net>
Wed, 19 Mar 2003 07:20:45 +0000 (07:20 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 19 Mar 2003 07:20:45 +0000 (07:20 +0000)
render/font.c

index c03ea544447f789008297e545a0e312714864cef..157b0c7e7c4317d5f10e1edd2834e9dba3dc964d 100644 (file)
@@ -102,7 +102,7 @@ void font_draw(XftDraw *d, TextureText *t, int x, int y, int w, int h)
         c.color.red = 0;
         c.color.green = 0;
         c.color.blue = 0;
-        c.color.alpha = t->tint | t->tint << 8; // transparent shadow
+        c.color.alpha = t->tint | t->tint << 8; /* transparent shadow */
         c.pixel = BlackPixel(ob_display, ob_screen);
   
         XftDrawStringUtf8(d, &c, t->font->xftfont, x + t->offset,
@@ -112,8 +112,8 @@ void font_draw(XftDraw *d, TextureText *t, int x, int y, int w, int h)
     c.color.red = t->color->r | t->color->r << 8;
     c.color.green = t->color->g | t->color->g << 8;
     c.color.blue = t->color->b | t->color->b << 8;
+    c.color.alpha = 0xff | 0xff << 8; /* fully opaque text */
     c.pixel = t->color->pixel;
-    c.color.alpha = 0xff | 0xff << 8; // no transparency in Color yet
                      
     XftDrawStringUtf8(d, &c, t->font->xftfont, x,
                       t->font->xftfont->ascent + y -
This page took 0.023858 seconds and 4 git commands to generate.