Removed "full_redraw". It was never initialized (neither true or false),

and used only to invoke PDC_clr_scrn(), in one block that's been
commented out since version 2.2. Also removed PDC_clr_scrn(), which was
never used except in the same place.
This commit is contained in:
William McBrine
2006-03-25 23:57:50 +00:00
parent e3c1734a0b
commit dc12e986e6
6 changed files with 4 additions and 43 deletions

View File

@@ -15,7 +15,7 @@
* See the file maintain.er for details of the current maintainer. *
************************************************************************/
/* $Id: curses.h,v 1.150 2006/03/25 00:53:35 wmcbrine Exp $ */
/* $Id: curses.h,v 1.151 2006/03/25 23:57:40 wmcbrine Exp $ */
/*----------------------------------------------------------------------*
* PDCurses *
@@ -613,7 +613,6 @@ typedef struct
bool orgcbr; /* original MSDOS ^-BREAK setting */
bool visible_cursor; /* TRUE if cursor is visible */
bool audible; /* FALSE if the bell is visual */
bool full_redraw; /* TRUE for bad performance */
bool direct_video; /* Allow Direct Screen Memory writes */
bool mono; /* TRUE if current screen is mono */
bool sizeable; /* TRUE if adapter is resizeable */

View File

@@ -15,7 +15,7 @@
* See the file maintain.er for details of the current maintainer. *
************************************************************************/
/* $Id: curspriv.h,v 1.48 2006/03/25 23:39:52 wmcbrine Exp $ */
/* $Id: curspriv.h,v 1.49 2006/03/25 23:57:40 wmcbrine Exp $ */
/* CURSPRIV.H
@@ -209,7 +209,6 @@ int PDC_chadd(WINDOW *, chtype, bool, bool);
bool PDC_check_bios_key(void);
int PDC_chg_attrs(WINDOW *, chtype, int, int, int, int);
int PDC_chins(WINDOW *, chtype, bool);
int PDC_clr_scrn(WINDOW *);
int PDC_clr_update(void);
int PDC_copy_win(const WINDOW *, WINDOW *, int, int, int,
int, int, int, bool);

View File

@@ -484,7 +484,6 @@ FUNCTIONS
PDC_check_bios_key pdckbd
PDC_chg_attrs pdcdisp
PDC_chins pdcdisp
PDC_clr_scrn pdcdisp
PDC_clr_update pdcdisp
PDC_copy_win pdcwin
PDC_cursor_off pdcdisp

View File

@@ -24,7 +24,7 @@
#ifdef PDCDEBUG
const char *rcsid_PDCwin =
"$Id: pdcwin.c,v 1.36 2006/03/25 23:39:55 wmcbrine Exp $";
"$Id: pdcwin.c,v 1.37 2006/03/25 23:57:47 wmcbrine Exp $";
#endif
/*man-start**************************************************************
@@ -621,37 +621,6 @@ int PDC_chins(WINDOW *win, chtype c, bool xlat)
return PDC_chadd(win, c, xlat, FALSE);
}
/*man-start**************************************************************
PDC_clr_scrn() - Clears the physical screen and homes the cursor.
PDCurses Description:
This is an internal routine called by the doupdate() routines.
PDCurses Return Value:
This routine always returns OK.
Portability:
PDCurses int PDC_clr_scrn(WINDOW *win);
**man-end****************************************************************/
int PDC_clr_scrn(WINDOW *win)
{
#if !defined(XCURSES)
chtype attrs = win->_bkgd;
#endif
PDC_LOG(("PDC_clr_scrn() - called\n"));
#if defined(XCURSES)
XCursesInstruct(CURSES_CLEAR);
#else
PDC_scroll(0, 0, LINES - 1, COLS - 1, 0, attrs);
PDC_gotoxy(0, 0);
#endif
return OK;
}
/*man-start**************************************************************
PDC_clr_update() - Updates the screen with a full redraw.
@@ -681,10 +650,7 @@ int PDC_clr_update(void)
if (curscr == (WINDOW *)NULL)
return ERR;
#if 0
if (SP->full_redraw)
PDC_clr_scrn(s); /* clear physical screen */
#endif
curscr->_clear = FALSE;
for (i = 0; i < LINES; i++) /* update physical screen */

View File

@@ -272,7 +272,6 @@ EXPORTS PDC_chadd
EXPORTS PDC_check_bios_key
EXPORTS PDC_chg_attrs
EXPORTS PDC_chins
EXPORTS PDC_clr_scrn
EXPORTS PDC_clr_update
EXPORTS PDC_copy_win
EXPORTS PDC_cursor_off

View File

@@ -265,7 +265,6 @@ PDC_chadd
PDC_check_bios_key
PDC_chg_attrs
PDC_chins
PDC_clr_scrn
PDC_clr_update
PDC_copy_win
PDC_cursor_off