about summary refs log tree commit diff stats
path: root/src/title_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/title_bar.c')
-rw-r--r--src/title_bar.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/title_bar.c b/src/title_bar.c
index 17187f17..2e067d59 100644
--- a/src/title_bar.c
+++ b/src/title_bar.c
@@ -39,8 +39,7 @@ static void _title_bar_draw_status(void);
 void
 create_title_bar(void)
 {
-    int rows, cols;
-    getmaxyx(stdscr, rows, cols);
+    int cols = getmaxx(stdscr);
 
     title_bar = newwin(1, cols, 0, 0);
     wbkgd(title_bar, COLOUR_BAR_DEF);
@@ -61,8 +60,7 @@ title_bar_title(void)
 void
 title_bar_resize(void)
 {
-    int rows, cols;
-    getmaxyx(stdscr, rows, cols);
+    int cols = getmaxx(stdscr);
 
     wresize(title_bar, 1, cols);
     wbkgd(title_bar, COLOUR_BAR_DEF);
@@ -173,8 +171,7 @@ title_bar_draw(void)
 static void
 _title_bar_draw_status(void)
 {
-    int rows, cols;
-    getmaxyx(stdscr, rows, cols);
+    int cols = getmaxx(stdscr);
 
     wattron(title_bar, COLOUR_BAR_DRAW);
     mvwaddch(title_bar, 0, cols - 14, '[');