From ceab127fac8b226ea2907261bdd6337b79d5d550 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 20 Nov 2007 21:42:29 +0000 Subject: 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. --- window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index 0c029b4c..e79be717 100644 --- a/window.c +++ b/window.c @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.26 2007-11-07 19:41:17 nicm Exp $ */ +/* $Id: window.c,v 1.27 2007-11-20 21:42:29 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -256,7 +256,7 @@ window_resize(struct window *w, u_int sx, u_int sy) { struct winsize ws; - if (sx == w->screen.sx && sy == w->screen.sy) + if (sx == screen_size_x(&w->screen) && sy == screen_size_y(&w->screen)) return (-1); memset(&ws, 0, sizeof ws); -- cgit