From 6d214b44d9f150d82c84008fda8d4e4c2f4d18e9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 15 Apr 2014 22:05:08 -0400 Subject: comment --- term.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'term.c') diff --git a/term.c b/term.c index ad9392f..3fcb30a 100644 --- a/term.c +++ b/term.c @@ -14,6 +14,9 @@ void runes_term_init(RunesTerm *t, int argc, char *argv[]) runes_window_backend_create_window(t, argc, argv); runes_display_set_window_size(t); + + /* have to initialize these here instead of in display_init because they + * depend on the window size being set */ t->scroll_top = 0; t->scroll_bottom = t->rows - 1; -- cgit v1.2.3-54-g00ecf