1994-10-07 08:58:58 +00:00
|
|
|
|
|
|
|
/* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for *
|
|
|
|
* details. If they are missing then this copy is in violation of *
|
|
|
|
* the copyright conditions. */
|
|
|
|
|
|
|
|
/*
|
|
|
|
** lib_window.c
|
|
|
|
**
|
|
|
|
**
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include "curses.priv.h"
|
|
|
|
|
|
|
|
int mvder(WINDOW *win, int y, int x)
|
|
|
|
{
|
1994-12-02 06:40:24 +00:00
|
|
|
return(ERR);
|
1994-10-07 08:58:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void wsyncup(WINDOW *win)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
int syncok(WINDOW *win, bool bf)
|
|
|
|
{
|
1994-12-02 06:40:24 +00:00
|
|
|
return(ERR);
|
1994-10-07 08:58:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void wcursyncup(WINDOW *win)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void wsyncdown(WINDOW *win)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
WINDOW *dupwin(WINDOW *win)
|
|
|
|
{
|
|
|
|
WINDOW *nwin;
|
1994-12-02 06:40:24 +00:00
|
|
|
int linesize, i;
|
|
|
|
|
|
|
|
T(("dupwin(%x) called", win));
|
1994-10-07 08:58:58 +00:00
|
|
|
|
1994-12-02 06:40:24 +00:00
|
|
|
if ((nwin = newwin(win->_maxy + 1, win->_maxx + 1, win->_begy, win->_begx)) == NULL)
|
1994-10-07 08:58:58 +00:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
nwin->_curx = win->_curx;
|
|
|
|
nwin->_cury = win->_cury;
|
|
|
|
nwin->_maxy = win->_maxy;
|
1995-05-30 05:51:47 +00:00
|
|
|
nwin->_maxx = win->_maxx;
|
1994-10-07 08:58:58 +00:00
|
|
|
nwin->_begy = win->_begy;
|
|
|
|
nwin->_begx = win->_begx;
|
|
|
|
|
|
|
|
nwin->_flags = win->_flags;
|
|
|
|
nwin->_attrs = win->_attrs;
|
1995-05-30 05:51:47 +00:00
|
|
|
nwin->_bkgd = win->_bkgd;
|
1994-10-07 08:58:58 +00:00
|
|
|
|
1995-05-30 05:51:47 +00:00
|
|
|
nwin->_clear = win->_clear;
|
1994-10-07 08:58:58 +00:00
|
|
|
nwin->_scroll = win->_scroll;
|
|
|
|
nwin->_leave = win->_leave;
|
|
|
|
nwin->_use_keypad = win->_use_keypad;
|
|
|
|
nwin->_use_meta = win->_use_meta;
|
|
|
|
nwin->_delay = win->_delay;
|
|
|
|
nwin->_immed = win->_immed;
|
|
|
|
nwin->_sync = win->_sync;
|
|
|
|
nwin->_parx = win->_parx;
|
|
|
|
nwin->_pary = win->_pary;
|
1995-05-30 05:51:47 +00:00
|
|
|
nwin->_parent = win->_parent;
|
1994-10-07 08:58:58 +00:00
|
|
|
|
|
|
|
nwin->_regtop = win->_regtop;
|
|
|
|
nwin->_regbottom = win->_regbottom;
|
|
|
|
|
1994-12-02 06:40:24 +00:00
|
|
|
linesize = (win->_maxx + 1) * sizeof(chtype);
|
|
|
|
for (i = 0; i <= nwin->_maxy; i++) {
|
|
|
|
memcpy(nwin->_line[i], win->_line[i], linesize);
|
1994-10-07 08:58:58 +00:00
|
|
|
nwin->_firstchar[i] = win->_firstchar[i];
|
|
|
|
nwin->_lastchar[i] = win->_lastchar[i];
|
|
|
|
}
|
|
|
|
|
|
|
|
return nwin;
|
|
|
|
}
|
|
|
|
|