home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Title : jzmovwnd │
- │ Purpose : Restore a window to a given set of coordinates │
- │ │
- │ Written by Jack Zucker - 75766,1336 301-794-5950 on 1/15/85 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
- #include <jaz.h>
- #include <jzscreen.h>
-
- jzmovwnd ( fwindow , frow , fcol )
- TWINDOW *fwindow;
- int frow,fcol;
- {
- int wscrseg;
- int wdseg;
-
- wdseg = getds();
-
- if (MEMB(0x40,0x49)==3) /* true if color screen */
- wscrseg = 0xB800; /* color mode */
- else
- wscrseg = 0xB000; /* mono mode */
-
- moves(wdseg,fwindow->buf,wscrseg,frow * 160 + (fcol << 1),
- fwindow->row2-fwindow->row1+1,fwindow->col2-fwindow->col1+1);
- }