all repos — openbox @ 4b32a060adb0814a0bd84ff32a364dcf9a1bf6b4

openbox fork - make it a bit more like ryudo

no more april's fool (and also committed a bit too much before)
Mikael Magnusson mikachu@comhem.se
commit

4b32a060adb0814a0bd84ff32a364dcf9a1bf6b4

parent

1c9a69e1df14f9dc571d739b2acfd9c09b5b7fd7

2 files changed, 4 insertions(+), 5 deletions(-)

jump to
M po/LINGUASpo/LINGUAS

@@ -1,5 +1,4 @@

ja es sv -ko en@quot en@boldquot
M render/font.crender/font.c

@@ -184,7 +184,7 @@ x = area->x + 2;

w = area->width - 4; h = area->height; - text = g_string_new(strfry(t->string)); + text = g_string_new(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 @@ XftDrawStringUtf8(d, &c, t->font->xftfont, x + t->font->offset,

t->font->xftfont->ascent + y + t->font->offset, (FcChar8*)text->str, l); } - 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.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;