From 03d531ebc6058f0c3d4f5d2a5471255d23c0b93e Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 11 Feb 2009 17:50:36 +0000 Subject: Move sx,sy into tty rather than client. --- server.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server.c') diff --git a/server.c b/server.c index d7ef46f7..1a5f6166 100644 --- a/server.c +++ b/server.c @@ -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 @@ -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; -- cgit