diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-19 07:20:45 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-19 07:20:45 +0000 |
| commit | 812b9b03f4316eac69ff8101e6fe3c8fbdbac69b (patch) | |
| tree | 17039255831fa2f87ccfc618467cb9a47f69ad63 /render/font.c | |
| parent | ff39eb9ba28360086bec0b2bd097906ebd407741 (diff) | |
clean up comments regarding alpha
Diffstat (limited to 'render/font.c')
| -rw-r--r-- | render/font.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/font.c b/render/font.c index c03ea544..157b0c7e 100644 --- a/render/font.c +++ b/render/font.c @@ -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 - |
