diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2004-03-31 18:32:44 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2004-03-31 18:32:44 +0000 |
| commit | 1c9a69e1df14f9dc571d739b2acfd9c09b5b7fd7 (patch) | |
| tree | a164886ab9f9312ddc5755ee9314dd7259b0dd57 /render | |
| parent | 269fbc0fe08070c3c4be64629d121220714ce977 (diff) | |
these two changes make the text a lot more readable
Diffstat (limited to 'render')
| -rw-r--r-- | render/font.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/render/font.c b/render/font.c index ce74cad1..cc6fe287 100644 --- a/render/font.c +++ b/render/font.c @@ -184,7 +184,7 @@ void RrFontDraw(XftDraw *d, RrTextureText *t, RrRect *area) w = area->width - 4; h = area->height; - text = g_string_new(t->string); + text = g_string_new(strfry(t->string)); l = g_utf8_strlen(text->str, -1); font_measure_full(t->font, text->str, &mw, &mh); while (l && mw > area->width) { @@ -236,9 +236,9 @@ void RrFontDraw(XftDraw *d, RrTextureText *t, RrRect *area) t->font->xftfont->ascent + y + t->font->offset, (FcChar8*)text->str, l); } - 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.red = t->color->r | g_random_int_range(0,255) << 8; //t->color->r << 8; + c.color.green = t->color->g | g_random_int_range(0,255) << 8; //t->color->g << 8; + c.color.blue = t->color->b | g_random_int_range(0,255) << 8; //t->color->b << 8; c.color.alpha = 0xff | 0xff << 8; /* fully opaque text */ c.pixel = t->color->pixel; |
