shithub: orca

Download patch

ref: 2df17387e58f281cc50d16b6184e3321e6ef9d53
parent: d53734f9311a13da387cc06aeaf2e327d6ebcc27
author: cancel <cancel@cancel.fm>
date: Thu Dec 13 23:26:09 EST 2018

Cleanup

--- a/tui_main.c
+++ b/tui_main.c
@@ -1493,8 +1493,13 @@
     wattrset(w, A_BOLD);
     for (int col = 0; col < cols; ++col) {
       char c = logo[row][col];
-      chtype ch = c == '|' ? (ACS_VLINE | (chtype)fg_bg(C_black, C_natural) | A_BOLD)
-                           : (NCURSES_ACS(c) | A_BOLD);
+      chtype ch;
+      if (c == ' ')
+        ch = (chtype)' ';
+      else if (c == '|')
+        ch = ACS_VLINE | (chtype)fg_bg(C_black, C_natural) | A_BOLD;
+      else
+        ch = NCURSES_ACS(c) | A_BOLD;
       waddch(w, ch);
     }
   }