From d133a075fa6f347811a2cd40541fa9b479b0dad9 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Mon, 20 Mar 2006 07:46:26 +0000 Subject: [PATCH] WINDOW._blank was never set to anything but ' '. --- curses.h | 3 +-- pdcurses/pdcwin.c | 5 ++--- pdcurses/window.c | 3 +-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/curses.h b/curses.h index a2a47432..5cbf419a 100644 --- a/curses.h +++ b/curses.h @@ -15,7 +15,7 @@ * See the file maintain.er for details of the current maintainer. * ************************************************************************/ -/* $Id: curses.h,v 1.143 2006/03/20 07:43:33 wmcbrine Exp $ */ +/* $Id: curses.h,v 1.144 2006/03/20 07:46:26 wmcbrine Exp $ */ /*----------------------------------------------------------------------* * PDCurses * @@ -587,7 +587,6 @@ typedef struct _win /* definition of a window */ char *_title; /* window title */ char _title_ofs; /* window title offset from left */ chtype _title_attr; /* window title attributes */ - chtype _blank; /* window's blank character */ int _parx, _pary; /* coords relative to parent (0,0) */ struct _win *_parent; /* subwin's pointer to parent win */ } WINDOW; diff --git a/pdcurses/pdcwin.c b/pdcurses/pdcwin.c index c95d0a79..335725bc 100644 --- a/pdcurses/pdcwin.c +++ b/pdcurses/pdcwin.c @@ -24,7 +24,7 @@ #ifdef PDCDEBUG const char *rcsid_PDCwin = - "$Id: pdcwin.c,v 1.30 2006/03/20 07:43:33 wmcbrine Exp $"; + "$Id: pdcwin.c,v 1.31 2006/03/20 07:46:26 wmcbrine Exp $"; #endif /*man-start************************************************************** @@ -85,7 +85,7 @@ int PDC_copy_win(const WINDOW *src_w, WINDOW *dst_w, int src_tr, for (col = 0; col < xdiff; col++) { if ((*w1ptr) != (*w2ptr) && !((*w1ptr & A_CHARTEXT) - == src_w->_blank && overlay)) + == ' ' && overlay)) { *w2ptr = *w1ptr; @@ -210,7 +210,6 @@ WINDOW * PDC_makenew(int num_lines, int num_columns, int begy, int begx) win->_bmarg = num_lines - 1; win->_title_ofs = 1; win->_title_attr = win->_attrs; - win->_blank = ' '; win->_parx = win->_pary = -1; /* init to say window unchanged */ diff --git a/pdcurses/window.c b/pdcurses/window.c index 24652f00..cb0c3cb7 100644 --- a/pdcurses/window.c +++ b/pdcurses/window.c @@ -47,7 +47,7 @@ #ifdef PDCDEBUG const char *rcsid_window = - "$Id: window.c,v 1.23 2006/02/23 01:46:52 wmcbrine Exp $"; + "$Id: window.c,v 1.24 2006/03/20 07:46:26 wmcbrine Exp $"; #endif /*man-start************************************************************** @@ -403,7 +403,6 @@ WINDOW *dupwin(WINDOW *win) new->_title = win->_title; new->_title_ofs = win->_title_ofs; new->_title_attr = win->_title_attr; - new->_blank = win->_blank; new->_parx = win->_parx; new->_pary = win->_pary; new->_parent = win->_parent;