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 /resize.c | |
parent | 0be6a3041ff58e716e6e44ff577dcc62685b3613 (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 'resize.c')
-rw-r--r-- | resize.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: resize.c,v 1.4 2007-10-19 10:21:35 nicm Exp $ */ +/* $Id: resize.c,v 1.5 2007-11-20 21:42:29 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -107,11 +107,12 @@ recalculate_sizes(void) if (ssx == UINT_MAX || ssy == UINT_MAX) continue; - if (w->screen.sx == ssx && w->screen.sy == ssy) + if (screen_size_x(&w->screen) == ssx && + screen_size_y(&w->screen) == ssy) continue; - log_debug("window size %u,%u (was %u,%u)", - ssx, ssy, w->screen.sx, w->screen.sy); + log_debug("window size %u,%u (was %u,%u)", ssx, ssy, + screen_size_x(&w->screen), screen_size_y(&w->screen)); server_clear_window_cur(w); window_resize(w, ssx, ssy); |