1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 03:46:45 +02:00

made borders-lines crisp

This commit is contained in:
Jfreegman
2013-11-23 23:46:46 -05:00
parent 319eec21fe
commit 1064e8d144
4 changed files with 13 additions and 12 deletions

View File

@ -281,7 +281,7 @@ static void friendlist_onDraw(ToxWindow *self, Tox *m)
}
/* Truncate note if it doesn't fit on one line */
uint16_t maxlen = x - getcurx(self->window) - 2;
uint16_t maxlen = x - getcurx(self->window) - 4;
if (friends[f].statusmsg_len > maxlen) {
friends[f].statusmsg[maxlen-3] = '\0';
strcat(friends[f].statusmsg, "...");