applied Jochen's drw_text patch, thanks
Anselm R Garbe anselm@garbe.us
Sun, 23 Jun 2013 21:53:09 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
drw.c
→
drw.c
@@ -157,7 +157,7 @@ th = drw->font->ascent + drw->font->descent;
ty = y + (h / 2) - (th / 2) + drw->font->ascent; tx = x + (h / 2); /* shorten text if necessary */ - for(len = MIN(olen, sizeof buf); len && tex.w > w - tex.h; len--) + for(len = MIN(olen, sizeof buf); len && (tex.w > w - tex.h || w < tex.h); len--) drw_font_getexts(drw->font, text, len, &tex); if(!len) return;