about summary refs log tree commit diff stats
path: root/src/ui/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/windows.c')
-rw-r--r--src/ui/windows.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c
index 0d9d7048..88c811e5 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -207,9 +207,7 @@ void
 wins_refresh_current(void)
 {
     ProfWin *window = wins_get_current();
-    int rows, cols;
-    getmaxyx(stdscr, rows, cols);
-    prefresh(window->win, window->y_pos, 0, 1, 0, rows-3, cols-1);
+    win_refresh(window);
 }
 
 void
@@ -350,7 +348,7 @@ wins_lost_connection(void)
     while (curr != NULL) {
         ProfWin *window = curr->data;
         if (window->type != WIN_CONSOLE) {
-            window->print_time(window, '-');
+            win_print_time(window, '-');
             wattron(window->win, COLOUR_ERROR);
             wprintw(window->win, "%s\n", "Lost connection.");
             wattroff(window->win, COLOUR_ERROR);