fix font width calculations

This commit is contained in:
Markus Teich
2015-10-31 18:07:07 +01:00
parent 4a114392bb
commit a9ca2473fd
2 changed files with 5 additions and 4 deletions

2
drw.c
View File

@ -379,7 +379,7 @@ unsigned int
drw_fontset_getwidth(Drw *drw, const char *text) {
if (!drw || !drw->fonts || !text)
return 0;
return drw_text(drw, 0, 0, 0, 0, text, 0) + drw->fonts->h;
return drw_text(drw, 0, 0, 0, 0, text, 0);
}
void