home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │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);
- }
-