summaryrefslogtreecommitdiffstats
path: root/window.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 /window.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 'window.c')
-rw-r--r--window.c4
1 files changed, 2 insertions, 2 deletions
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 <nicm@users.sourceforge.net>
@@ -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);