aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-02-12 16:36:12 -0500
committerJesse Luehrs <doy@tozt.net>2017-02-12 16:36:12 -0500
commit99ec8a898b7571c07fb322e2365b186df1681687 (patch)
treec54ef209ea2c1f5aa33fcb9ea7bfcac6a475aada /src/term.c
parent23590b5069a2ad466c3c85997c35bf9b07bc6339 (diff)
downloadrunes-99ec8a898b7571c07fb322e2365b186df1681687.tar.gz
runes-99ec8a898b7571c07fb322e2365b186df1681687.zip
avoid an allocation on every glyph string draw
probably not super meaningful compared to the cost of the cairo operations, but may as well
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c
index 3477dab..bee110b 100644
--- a/src/term.c
+++ b/src/term.c
@@ -47,6 +47,7 @@ void runes_term_set_window_size(RunesTerm *t, int xpixel, int ypixel)
int row = ypixel / t->display->fonty, col = xpixel / t->display->fontx;
runes_pty_set_window_size(t, row, col, xpixel, ypixel);
+ runes_display_set_window_size(t, row, col);
vt100_screen_set_window_size(t->scr, row, col);
}