From c1af3c6dc560c60a82440d5119c9565dafaafe1e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 7 May 2016 17:56:22 -0400 Subject: split up some unnecessary cross-module dependencies --- src/pty-unix.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/pty-unix.c') diff --git a/src/pty-unix.c b/src/pty-unix.c index e21b3bb..6cd7715 100644 --- a/src/pty-unix.c +++ b/src/pty-unix.c @@ -91,14 +91,15 @@ void runes_pty_backend_init_loop(RunesTerm *t, RunesLoop *loop) runes_pty_backend_got_data); } -void runes_pty_backend_set_window_size(RunesTerm *t) +void runes_pty_backend_set_window_size(RunesTerm *t, int row, int col, + int xpixel, int ypixel) { struct winsize size; - size.ws_row = t->scr.grid->max.row; - size.ws_col = t->scr.grid->max.col; - size.ws_xpixel = t->display.xpixel; - size.ws_ypixel = t->display.ypixel; + size.ws_row = row; + size.ws_col = col; + size.ws_xpixel = xpixel; + size.ws_ypixel = ypixel; ioctl(t->pty.master, TIOCSWINSZ, &size); } -- cgit v1.2.3-54-g00ecf