Second parameter to PDC_scr_open() was always 0.

This commit is contained in:
William McBrine
2006-07-16 16:42:31 +00:00
parent b161602300
commit c53fda8dd3
6 changed files with 21 additions and 22 deletions

View File

@@ -15,7 +15,7 @@
* See the file maintain.er for details of the current maintainer. *
************************************************************************/
/* $Id: curspriv.h,v 1.89 2006/07/16 01:59:43 wmcbrine Exp $ */
/* $Id: curspriv.h,v 1.90 2006/07/16 16:42:31 wmcbrine Exp $ */
/* CURSPRIV.H
@@ -116,7 +116,7 @@ int PDC_reset_prog_mode(void);
int PDC_reset_shell_mode(void);
int PDC_resize_screen(int, int);
int PDC_scr_close(void);
int PDC_scr_open(SCREEN *, bool);
int PDC_scr_open(SCREEN *);
int PDC_set_ctrl_break(bool);
int PDC_set_cursor_mode(int, int);
int PDC_set_font(int);

View File

@@ -24,7 +24,7 @@
# include <sys/movedata.h>
#endif
RCSID("$Id: pdcscrn.c,v 1.30 2006/07/14 16:00:52 wmcbrine Exp $");
RCSID("$Id: pdcscrn.c,v 1.31 2006/07/16 16:42:31 wmcbrine Exp $");
Regs regs; /* used in various other modules */
@@ -109,11 +109,11 @@ int PDC_scr_close(void)
The DOS platform will never fail.
Portability:
PDCurses int PDC_scr_open(SCREEN *internal, bool echo);
PDCurses int PDC_scr_open(SCREEN *internal);
**man-end****************************************************************/
int PDC_scr_open(SCREEN *internal, bool echo)
int PDC_scr_open(SCREEN *internal)
{
#if SMALL || MEDIUM
# ifndef __PACIFIC__
@@ -135,7 +135,7 @@ int PDC_scr_open(SCREEN *internal, bool echo)
internal->cbreak = TRUE;
internal->save_key_modifiers = FALSE;
internal->return_key_modifiers = FALSE;
internal->echo = echo;
internal->echo = FALSE;
internal->video_seg = 0xb000; /* Base screen segment addr */
internal->video_ofs = 0x0; /* Base screen segment ofs */
internal->video_page = 0; /* Current Video Page */

View File

@@ -20,7 +20,7 @@
#include <curses.h>
#include <stdlib.h>
RCSID("$Id: pdcscrn.c,v 1.26 2006/07/16 16:12:44 wmcbrine Exp $");
RCSID("$Id: pdcscrn.c,v 1.27 2006/07/16 16:42:31 wmcbrine Exp $");
#ifdef EMXVIDEO
static unsigned char *saved_screen = NULL;
@@ -132,19 +132,18 @@ bool PDC_scrn_modes_equal(int mode1, int mode2)
The DOS platform will never fail.
Portability:
PDCurses int PDC_scr_open(SCREEN *internal, bool echo);
PDCurses int PDC_scr_open(SCREEN *internal);
**man-end****************************************************************/
int PDC_scr_open(SCREEN *internal, bool echo)
int PDC_scr_open(SCREEN *internal)
{
char *ptr;
#ifndef EMXVIDEO
USHORT totchars;
#endif
PDC_LOG(("PDC_scr_open() - called. internal: %x, echo: %d\n",
internal, echo));
PDC_LOG(("PDC_scr_open() - called. internal: %x\n", internal));
#ifdef EMXVIDEO
v_init();
@@ -160,7 +159,7 @@ int PDC_scr_open(SCREEN *internal, bool echo)
internal->cbreak = TRUE;
internal->save_key_modifiers = FALSE;
internal->return_key_modifiers = FALSE;
internal->echo = echo;
internal->echo = FALSE;
internal->visible_cursor = TRUE; /* Assume that it is visible */
internal->cursor = PDC_get_cursor_mode();
#ifdef EMXVIDEO

View File

@@ -38,7 +38,7 @@
# undef wnoutrefresh
#endif
RCSID("$Id: initscr.c,v 1.52 2006/07/16 16:12:45 wmcbrine Exp $");
RCSID("$Id: initscr.c,v 1.53 2006/07/16 16:42:31 wmcbrine Exp $");
const char *_curses_notice = "PDCurses 3.0 - Public Domain 2006";
@@ -187,7 +187,7 @@ WINDOW *Xinitscr(int argc, char *argv[])
exit(8);
}
PDC_scr_open(SP, 0);
PDC_scr_open(SP);
LINES = SP->lines;
COLS = SP->cols;

View File

@@ -19,7 +19,7 @@
#define INCLUDE_WINDOWS_H
#include <curses.h>
RCSID("$Id: pdcscrn.c,v 1.36 2006/07/02 22:15:59 wmcbrine Exp $");
RCSID("$Id: pdcscrn.c,v 1.37 2006/07/16 16:42:31 wmcbrine Exp $");
#define PDC_RESTORE_NONE 0
#define PDC_RESTORE_BUFFER 1
@@ -125,11 +125,11 @@ int PDC_scr_close(void)
The DOS platform will never fail.
Portability:
PDCurses int PDC_scr_open(SCREEN *internal, bool echo);
PDCurses int PDC_scr_open(SCREEN *internal);
**man-end****************************************************************/
int PDC_scr_open(SCREEN *internal, bool echo)
int PDC_scr_open(SCREEN *internal)
{
COORD bufsize, origin;
SMALL_RECT rect;
@@ -276,7 +276,7 @@ int PDC_scr_open(SCREEN *internal, bool echo)
internal->cbreak = TRUE;
internal->save_key_modifiers = FALSE;
internal->return_key_modifiers = FALSE;
internal->echo = echo;
internal->echo = FALSE;
internal->visible_cursor= TRUE; /* Assume that it is visible */
internal->cursor = PDC_get_cursor_mode();

View File

@@ -17,7 +17,7 @@
#include "pdcx11.h"
RCSID("$Id: pdcscrn.c,v 1.24 2006/07/02 19:03:59 wmcbrine Exp $");
RCSID("$Id: pdcscrn.c,v 1.25 2006/07/16 16:42:31 wmcbrine Exp $");
bool GLOBAL_sb_on = FALSE;
bool GLOBAL_slk_on = FALSE;
@@ -63,11 +63,11 @@ int PDC_scr_close(void)
The DOS platform will never fail.
Portability:
PDCurses int PDC_scr_open(SCREEN *internal, bool echo);
PDCurses int PDC_scr_open(SCREEN *internal);
**man-end****************************************************************/
int PDC_scr_open(SCREEN *internal, bool echo)
int PDC_scr_open(SCREEN *internal)
{
extern bool sb_started;
@@ -80,7 +80,7 @@ int PDC_scr_open(SCREEN *internal, bool echo)
internal->cbreak = TRUE;
internal->save_key_modifiers = FALSE;
internal->return_key_modifiers = FALSE;
internal->echo = echo;
internal->echo = FALSE;
internal->visible_cursor= TRUE; /* Assume that it is visible */
internal->cursor = 0;
internal->adapter = 0;