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.

This commit is contained in:
Nicholas Marriott
2007-11-20 21:42:29 +00:00
parent 0be6a3041f
commit ceab127fac
10 changed files with 617 additions and 555 deletions

View File

@@ -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);