diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-11 17:50:36 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-11 17:50:36 +0000 |
commit | 03d531ebc6058f0c3d4f5d2a5471255d23c0b93e (patch) | |
tree | 7d4f79ccbee7673ee6fea28ab9c91e8e8803655b /server.c | |
parent | 65378588acc59fe1cf5121dc41aa782812b8033d (diff) | |
download | rtmux-03d531ebc6058f0c3d4f5d2a5471255d23c0b93e.tar.gz rtmux-03d531ebc6058f0c3d4f5d2a5471255d23c0b93e.tar.bz2 rtmux-03d531ebc6058f0c3d4f5d2a5471255d23c0b93e.zip |
Move sx,sy into tty rather than client.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.119 2009-02-10 00:18:06 nicm Exp $ */ +/* $Id: server.c,v 1.120 2009-02-11 17:50:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -85,9 +85,9 @@ server_create_client(int fd) c->title = NULL; c->session = NULL; - c->sx = 80; - c->sy = 25; - screen_init(&c->status, c->sx, 1, 0); + c->tty.sx = 80; + c->tty.sy = 25; + screen_init(&c->status, c->tty.sx, 1, 0); c->message_string = NULL; @@ -520,8 +520,8 @@ server_redraw_locked(struct client *c) u_int colour, xx, yy; int style; - xx = c->sx; - yy = c->sy - 1; + xx = c->tty.sx; + yy = c->tty.sy - 1; if (xx == 0 || yy == 0) return; colour = options_get_number( @@ -768,7 +768,7 @@ server_handle_client(struct client *c) /* Ensure cursor position and mode settings. */ status = options_get_number(&c->session->options, "status"); - if (wp->yoff + wp->screen->cy < c->sy - status) + if (wp->yoff + wp->screen->cy < c->tty.sy - status) tty_cursor(&c->tty, wp->screen->cx, wp->screen->cy, wp->yoff); mode = wp->screen->mode; |