diff --git a/source/screen.c b/source/screen.c index 52a4a13..5a388cb 100644 --- a/source/screen.c +++ b/source/screen.c @@ -1397,9 +1397,8 @@ int BX_is_cursor_in_display(Screen *screen) * If end_line is -1, then that means clear the display if any of it appears * after the end of the scrollback buffer. */ -void BX_repaint_window (Window *w, int start_line, int end_line) +void BX_repaint_window (Window *window, int start_line, int end_line) { - Window *window = (Window *)w; Display *curr_line; int count; int clean_display = 0; @@ -1407,9 +1406,6 @@ void BX_repaint_window (Window *w, int start_line, int end_line) if (dumb_mode || !window->visible) return; - if (!window) - window = current_window; - if (end_line == -1) { end_line = window->display_size;