about summary refs log tree commit diff stats
path: root/src/status_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/status_bar.c')
-rw-r--r--src/status_bar.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/status_bar.c b/src/status_bar.c
index 763f5ada..3a22d3db 100644
--- a/src/status_bar.c
+++ b/src/status_bar.c
@@ -122,8 +122,7 @@ status_bar_inactive(const int win)
 
     int active_pos = 1 + ((win -1) * 3);
 
-    int rows, cols;
-    getmaxyx(stdscr, rows, cols);
+    int cols = getmaxx(stdscr);
  
     mvwaddch(status_bar, 0, cols - 29 + active_pos, ' ');
     if (win == 9)
@@ -140,8 +139,7 @@ status_bar_active(const int win)
 
     int active_pos = 1 + ((win -1) * 3);
 
-    int rows, cols;
-    getmaxyx(stdscr, rows, cols);
+    int cols = getmaxx(stdscr);
  
     wattron(status_bar, COLOUR_BAR_DRAW);
     if (win < 9)
@@ -161,8 +159,7 @@ status_bar_new(const int win)
 
     int active_pos = 1 + ((win -1) * 3);
 
-    int rows, cols;
-    getmaxyx(stdscr, rows, cols);
+    int cols = getmaxx(stdscr);
  
     wattron(status_bar, COLOUR_BAR_TEXT);
     wattron(status_bar, A_BLINK);
@@ -212,8 +209,8 @@ status_bar_clear(void)
 
     wclear(status_bar);
 
-    int rows, cols;
-    getmaxyx(stdscr, rows, cols);
+    int cols = getmaxx(stdscr);
+
     wattron(status_bar, COLOUR_BAR_DRAW);
     mvwprintw(status_bar, 0, cols - 29, _active);
     wattroff(status_bar, COLOUR_BAR_DRAW);