home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
msdos
/
c
/
jazlib.arc
/
JZCLRWND.C
< prev
next >
Wrap
Text File
|
1986-05-14
|
653b
|
26 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzclrwnd │
│Change the color of a window │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*/
#include <jaz.h>
#include <jzscreen.h>
jzclrwnd(fptr,fattr)
TWINDOW *fptr;
int fattr;
{
unsigned int scrseg;
if (MEMB(0x40,0x49) == 7) scrseg = 0xb000;
else scrseg = 0xb800;
moveattr(scrseg,fptr->row1 * 160 + (fptr->col1 << 1),
fptr->row2 - fptr->row1 + 1,
fptr->col2 - fptr->col1 + 1,fattr);
}