diff options
author | Anselm R Garbe | 2013-06-23 21:53:09 +0200 |
---|---|---|
committer | Anselm R Garbe | 2013-06-23 21:53:09 +0200 |
commit | d9e838dc2257293318b008fd18e3bb16d2654731 (patch) | |
tree | d5836a96c410c93e9b83f199804b25c010a7953b /drw.c | |
parent | 3443318778842bf2f641e14ad94b00ebd0b1c876 (diff) | |
download | aur-d9e838dc2257293318b008fd18e3bb16d2654731.tar.gz |
applied Jochen's drw_text patch, thanks
Diffstat (limited to 'drw.c')
-rw-r--r-- | drw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -157,7 +157,7 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, const char *tex 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; |