diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-20 21:42:29 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-20 21:42:29 +0000 |
commit | ceab127fac8b226ea2907261bdd6337b79d5d550 (patch) | |
tree | 558265c7e58356458b49a433d8fd3b43671251e6 /window.c | |
parent | 0be6a3041ff58e716e6e44ff577dcc62685b3613 (diff) | |
download | rtmux-ceab127fac8b226ea2907261bdd6337b79d5d550.tar.gz rtmux-ceab127fac8b226ea2907261bdd6337b79d5d550.tar.bz2 rtmux-ceab127fac8b226ea2907261bdd6337b79d5d550.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |