mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-25 00:05:16 +00:00
PDC_set_rows(): no longer used. (Use resize_term(), or in some cases
PDC_resize_screen().)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <curses.h>
|
||||
#include <string.h>
|
||||
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#define INCLUDE_WINDOWS_H
|
||||
#include <curses.h>
|
||||
|
||||
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;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user