aboutsummaryrefslogtreecommitdiffstats
path: root/src/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/display.c')
-rw-r--r--src/display.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/display.c b/src/display.c
index ad4253d..a8c24bf 100644
--- a/src/display.c
+++ b/src/display.c
@@ -32,12 +32,6 @@ void runes_display_set_window_size(RunesTerm *t)
t->xpixel = width;
t->ypixel = height;
- t->scr.max.row = t->ypixel / t->fonty;
- t->scr.max.col = t->xpixel / t->fontx;
-
- t->scr.scroll_top = 0;
- t->scr.scroll_bottom = t->scr.max.row - 1;
-
old_cr = t->cr;
/* XXX this should really use cairo_surface_create_similar_image, but when
@@ -84,6 +78,7 @@ void runes_display_set_window_size(RunesTerm *t)
cairo_destroy(old_cr);
}
+ runes_screen_set_window_size(t);
runes_pty_backend_set_window_size(t);
}