home · contact · privacy
Enforced width limit on a comment.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 25 Jul 2013 20:27:44 +0000 (22:27 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 25 Jul 2013 20:27:44 +0000 (22:27 +0200)
src/windows.c

index b2643bf31d3ba0d0b065a92ae6c9bd4dfb8492e3..4d17d9db8979ef909b8c01add73880d19a66fcd4 100644 (file)
@@ -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 = ' ';