diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-05-07 17:56:22 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-05-07 17:56:22 -0400 |
commit | c1af3c6dc560c60a82440d5119c9565dafaafe1e (patch) | |
tree | 7831709cf4c002597ba3ad31a83229e3aaa86523 /src/pty-unix.c | |
parent | 5cfc4dd06e0fabedacff605667932ae7f0a2a278 (diff) | |
download | runes-c1af3c6dc560c60a82440d5119c9565dafaafe1e.tar.gz runes-c1af3c6dc560c60a82440d5119c9565dafaafe1e.zip |
split up some unnecessary cross-module dependencies
Diffstat (limited to 'src/pty-unix.c')
-rw-r--r-- | src/pty-unix.c | 11 |
1 files changed, 6 insertions, 5 deletions
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); } |