home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
328_02
/
wopen.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-17
|
705b
|
52 lines
/*! wopen
*
*
* open a window, save previous contents, draw borders
*
*
*
*/
#include "wscreen.h"
#include "wsys.h"
WINDOW *wopen (int x, int y, int xmax, int ymax,
unsigned char color, int boxtype, unsigned char box_color,
unsigned char save2)
{
wdefine (x, y, xmax, ymax, color, boxtype, box_color);
/* save contents of old screen underlying new window
* to restore when wclose
*/
if (save2 == WSAVE2RAM)
{
wsave();
}
/* store and paint new borders surrounding window.
*/
if (boxtype)
{
wframe (x-1, y-1, x+xmax, y+ymax, boxtype, box_color);
wclear();
}
return(w0);
} /*end of wopen*/