From: Christian Heller Date: Thu, 25 Jul 2013 20:27:44 +0000 (+0200) Subject: Enforced width limit on a comment. X-Git-Tag: tce~1133 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/add_task?a=commitdiff_plain;h=c061a58ba975e7501a0a8347e2227bf22d0f651a;p=plomrogue Enforced width limit on a comment. --- diff --git a/src/windows.c b/src/windows.c index b2643bf..4d17d9d 100644 --- a/src/windows.c +++ b/src/windows.c @@ -226,8 +226,8 @@ static void draw_win_borders(struct Win * w, char active) uint16_t title_offset = 0; if (w->frame.size.x > strlen(w->title) + 2) { - title_offset = (w->frame.size.x - (strlen(w->title) + 2)) / 2; // + 2 is for decoration - } + title_offset = (w->frame.size.x - (strlen(w->title) + 2)) / 2; /* + 2 */ + } /* is for padding/decoration */ uint16_t length_visible = strnlen(w->title, w->frame.size.x - 2); char title[length_visible + 3]; char decoration = ' ';