summaryrefslogtreecommitdiffstats
path: root/server-fn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-20 21:42:29 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-20 21:42:29 +0000
commitceab127fac8b226ea2907261bdd6337b79d5d550 (patch)
tree558265c7e58356458b49a433d8fd3b43671251e6 /server-fn.c
parent0be6a3041ff58e716e6e44ff577dcc62685b3613 (diff)
Mass screen.c rename/tidy. Add a actual size (ysize) as distinct from display size (now dx,dy). Move functions which work on the displayed area into screen-display.c and tidy. Use macros consistently when accessing screen data (may want to move everything about again later!). This the first step on the road to scrollback.
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server-fn.c b/server-fn.c
index 68ebc374..40a35400 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -1,4 +1,4 @@
-/* $Id: server-fn.c,v 1.25 2007-11-20 18:11:37 nicm Exp $ */
+/* $Id: server-fn.c,v 1.26 2007-11-20 21:42:29 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -175,7 +175,7 @@ server_clear_client(struct client *c)
size = BUFFER_USED(c->out);
input_store_zero(c->out, CODE_CURSOROFF);
- for (i = 0; i < s->sy; i++) {
+ for (i = 0; i < screen_size_y(s); i++) {
input_store_two(c->out, CODE_CURSORMOVE, i + 1, 1);
input_store_zero(c->out, CODE_CLEARLINE);
}
@@ -200,7 +200,7 @@ server_redraw_client(struct client *c)
buffer_add(c->out, sizeof hdr);
size = BUFFER_USED(c->out);
- screen_draw(s, c->out, 0, s->sy - 1);
+ screen_draw(s, c->out, 0, screen_last_y(s));
size = BUFFER_USED(c->out) - size;
log_debug("redrawing screen, %zu bytes", size);