X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ffont.c;h=7ffcb53b2dbcec7aa20166594fc859b2ea6748c2;hb=92d3f2342db3d3bfd5d41a6c3dc165efa7766ffa;hp=8bf69303804e204b1a414d59d86ba1f968646175;hpb=64e0884413d8d8ea5c710482b8c264f61f9ed9ed;p=chaz%2Fopenbox diff --git a/render/font.c b/render/font.c index 8bf69303..7ffcb53b 100644 --- a/render/font.c +++ b/render/font.c @@ -115,7 +115,7 @@ void font_draw(XftDraw *d, TextureText *t, Rect *position) m = font_measure_string(t->font, text, t->shadow, t->offset); while (l && m > position->width) { text[--l] = '\0'; - m = font_measure_string(t->font, text, t->shadow, t->offset); + m = font_measure_string(t->font, text, t->shadow, t->offset); } if (!l) return;