From 199f4c4ce7927b623cb9da5ca2df6dc369e3a2df Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sun, 23 Jul 2006 13:45:52 +0000 Subject: [PATCH] PDC_set_rows(): no longer used. (Use resize_term(), or in some cases PDC_resize_screen().) --- curspriv.h | 3 +-- doc/intro.man | 1 - dos/pdcsetsc.c | 61 +------------------------------------------- os2/pdcsetsc.c | 54 +-------------------------------------- win32/curses.def | 1 - win32/curses_lcc.def | 1 - win32/pdcsetsc.c | 33 +----------------------- x11/pdcsetsc.c | 33 +----------------------- 8 files changed, 5 insertions(+), 182 deletions(-) diff --git a/curspriv.h b/curspriv.h index fedd33d4..d67f81a4 100644 --- a/curspriv.h +++ b/curspriv.h @@ -15,7 +15,7 @@ * See the file maintain.er for details of the current maintainer. * ************************************************************************/ -/* $Id: curspriv.h,v 1.99 2006/07/22 22:49:27 wmcbrine Exp $ */ +/* $Id: curspriv.h,v 1.100 2006/07/23 13:45:52 wmcbrine Exp $ */ /* CURSPRIV.H @@ -114,7 +114,6 @@ int PDC_scr_open(int, char **); int PDC_set_ctrl_break(bool); int PDC_set_cursor_mode(int, int); int PDC_set_font(int); -int PDC_set_rows(int); void PDC_sync(WINDOW *); int PDC_sysgetch(void); void PDC_transform_line(int); diff --git a/doc/intro.man b/doc/intro.man index 52bfa605..9b81e91e 100644 --- a/doc/intro.man +++ b/doc/intro.man @@ -556,7 +556,6 @@ FUNCTIONS PDC_set_ctrl_break pdckbd PDC_set_cursor_mode pdcsetsc PDC_set_font pdcsetsc - PDC_set_rows pdcsetsc PDC_set_scrn_mode pdcsetsc PDC_set_title pdcsetsc PDC_setclipboard pdcclip diff --git a/dos/pdcsetsc.c b/dos/pdcsetsc.c index 93847f1a..d7bc8961 100644 --- a/dos/pdcsetsc.c +++ b/dos/pdcsetsc.c @@ -17,7 +17,7 @@ #include "pdcdos.h" -RCSID("$Id: pdcsetsc.c,v 1.19 2006/07/15 15:38:24 wmcbrine Exp $"); +RCSID("$Id: pdcsetsc.c,v 1.20 2006/07/23 13:45:52 wmcbrine Exp $"); /*man-start************************************************************** @@ -189,65 +189,6 @@ int PDC_set_font(int size) return OK; } -/*man-start************************************************************** - - PDC_set_rows() - sets the physical number of rows on screen - - PDCurses Description: - This is a private PDCurses function. - - This routine attempts to set the number of rows on the physical - screen to the passed value. - - PDCurses Return Value: - This function returns OK upon success otherwise ERR is returned. - - PDCurses Errors: - It is an error to attempt to change the screen size on a "bogus" - adapter. The reason for this is that we have a known video - adapter identity problem, i.e., two adapters report the same - identifying characteristics. - - Portability: - PDCurses int PDC_set_rows(int rows); - -**man-end****************************************************************/ - -int PDC_set_rows(int rows) -{ - PDC_LOG(("PDC_set_rows() - called\n")); - - if (SP->bogus_adapter) - return ERR; - - switch (SP->adapter) - { - case _EGACOLOR: - case _EGAMONO: - if (rows < 43) - PDC_set_font(_FONT14); - else - PDC_set_font(_FONT8); - break; - - case _VGACOLOR: - case _VGAMONO: - if (rows < 28) - PDC_set_font(_FONT16); - else - if (rows < 50) - PDC_set_font(_FONT14); - else - PDC_set_font(_FONT8); - } - - SP->font = PDC_get_font(); - LINES = PDC_get_rows(); - COLS = PDC_get_columns(); - - return OK; -} - /*man-start************************************************************** PDC_set_scrn_mode() - Set BIOS Video Mode diff --git a/os2/pdcsetsc.c b/os2/pdcsetsc.c index 20ebd66e..498685c7 100644 --- a/os2/pdcsetsc.c +++ b/os2/pdcsetsc.c @@ -19,7 +19,7 @@ #include #include -RCSID("$Id: pdcsetsc.c,v 1.21 2006/07/15 15:38:24 wmcbrine Exp $"); +RCSID("$Id: pdcsetsc.c,v 1.22 2006/07/23 13:45:52 wmcbrine Exp $"); /*man-start************************************************************** @@ -116,58 +116,6 @@ int PDC_set_font(int size) return OK; } -/*man-start************************************************************** - - PDC_set_rows() - sets the physical number of rows on screen - - PDCurses Description: - This is a private PDCurses function. - - This routine attempts to set the number of rows on the physical - screen to the passed value. - - PDCurses Return Value: - This function returns OK upon success otherwise ERR is returned. - - PDCurses Errors: - It is an error to attempt to change the screen size on a "bogus" - adapter. The reason for this is that we have a known video - adapter identity problem. e.g. Two adapters report the same - identifying characteristics. - - Portability: - PDCurses int PDC_set_rows(int rows); - -**man-end****************************************************************/ - -int PDC_set_rows(int rows) -{ -#ifndef EMXVIDEO - VIOMODEINFO modeInfo = {0}; - USHORT result; -#endif - PDC_LOG(("PDC_set_rows() - called\n")); - -#ifdef EMXVIDEO - return ERR; -#else - modeInfo.cb = sizeof(modeInfo); - - /* set most parameters of modeInfo */ - - VioGetMode(&modeInfo, 0); - modeInfo.fbType = 1; - modeInfo.row = rows; - result = VioSetMode(&modeInfo, 0); - - SP->font = PDC_get_font(); - LINES = PDC_get_rows(); - COLS = PDC_get_columns(); - - return (result == 0) ? OK : ERR; -#endif -} - /*man-start************************************************************** PDC_set_scrn_mode() - Set BIOS Video Mode diff --git a/win32/curses.def b/win32/curses.def index 43a471ff..27eabe7b 100644 --- a/win32/curses.def +++ b/win32/curses.def @@ -299,7 +299,6 @@ EXPORTS PDC_set_ctrl_break EXPORTS PDC_set_cursor_mode EXPORTS PDC_set_font EXPORTS PDC_set_title -EXPORTS PDC_set_rows EXPORTS PDC_sysgetch EXPORTS PDC_transform_line EXPORTS PDC_ungetch diff --git a/win32/curses_lcc.def b/win32/curses_lcc.def index e6ed3cdf..6b8bd830 100644 --- a/win32/curses_lcc.def +++ b/win32/curses_lcc.def @@ -292,7 +292,6 @@ PDC_set_ctrl_break PDC_set_cursor_mode PDC_set_font PDC_set_title -PDC_set_rows PDC_sysgetch PDC_transform_line PDC_ungetch diff --git a/win32/pdcsetsc.c b/win32/pdcsetsc.c index 882a6ae9..62670bb7 100644 --- a/win32/pdcsetsc.c +++ b/win32/pdcsetsc.c @@ -19,7 +19,7 @@ #define INCLUDE_WINDOWS_H #include -RCSID("$Id: pdcsetsc.c,v 1.20 2006/07/15 15:38:24 wmcbrine Exp $"); +RCSID("$Id: pdcsetsc.c,v 1.21 2006/07/23 13:45:52 wmcbrine Exp $"); extern HANDLE hConOut; @@ -78,37 +78,6 @@ int PDC_set_font(int size) return OK; } -/*man-start************************************************************** - - PDC_set_rows() - sets the physical number of rows on screen - - PDCurses Description: - This is a private PDCurses function. - - This routine attempts to set the number of rows on the physical - screen to the passed value. - - PDCurses Return Value: - This function returns OK upon success otherwise ERR is returned. - - PDCurses Errors: - It is an error to attempt to change the screen size on a "bogus" - adapter. The reason for this is that we have a known video - adapter identity problem. e.g. Two adapters report the same - identifying characteristics. - - Portability: - PDCurses int PDC_set_rows(int rows); - -**man-end****************************************************************/ - -int PDC_set_rows(int rows) -{ - PDC_LOG(("PDC_set_rows() - called\n")); - - return OK; -} - int PDC_curs_set(int visibility) { CONSOLE_CURSOR_INFO cci; diff --git a/x11/pdcsetsc.c b/x11/pdcsetsc.c index 85004ee2..95406c36 100644 --- a/x11/pdcsetsc.c +++ b/x11/pdcsetsc.c @@ -19,7 +19,7 @@ #include -RCSID("$Id: pdcsetsc.c,v 1.19 2006/07/21 05:07:46 wmcbrine Exp $"); +RCSID("$Id: pdcsetsc.c,v 1.20 2006/07/23 13:45:52 wmcbrine Exp $"); /*man-start************************************************************** @@ -52,37 +52,6 @@ int PDC_set_font(int size) return OK; } -/*man-start************************************************************** - - PDC_set_rows() - sets the physical number of rows on screen - - PDCurses Description: - This is a private PDCurses function. - - This routine attempts to set the number of rows on the physical - screen to the passed value. - - PDCurses Return Value: - This function returns OK upon success otherwise ERR is returned. - - PDCurses Errors: - It is an error to attempt to change the screen size on a "bogus" - adapter. The reason for this is that we have a known video - adapter identity problem. e.g. Two adapters report the same - identifying characteristics. - - Portability: - PDCurses int PDC_set_rows(int rows); - -**man-end****************************************************************/ - -int PDC_set_rows(int rows) -{ - PDC_LOG(("PDC_set_rows() - called\n")); - - return 0; -} - int PDC_curs_set(int visibility) { int ret_vis = SP->visibility;