aboutsummaryrefslogtreecommitdiffstats
path: root/src/display.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-30 03:28:42 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-30 03:28:42 -0400
commit21c4112cf12e3aa0e83170ca87100917eeeb3374 (patch)
tree2f1e0b965eb5cf329eeef8127c900964163e2bff /src/display.c
parent59be0a78dff68ee4a2fc29e33705fbc0c8b6c850 (diff)
downloadrunes-21c4112cf12e3aa0e83170ca87100917eeeb3374.tar.gz
runes-21c4112cf12e3aa0e83170ca87100917eeeb3374.zip
implement window resizing (again)
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);
}