From 21c4112cf12e3aa0e83170ca87100917eeeb3374 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 30 Apr 2014 03:28:42 -0400 Subject: implement window resizing (again) --- src/display.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/display.c') 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); } -- cgit v1.2.3-54-g00ecf