home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * Name SCGETVID - Get the state of the video adapter.
- *
- * Synopsis scgetvid(pstate);
- *
- * ADAP_STATE *pstate Pointer to structure in which to
- * return the video state.
- *
- * Description This function fetches the complete state of the
- * current video adapter and places it in pstate.
- * The information returned includes the current display
- * mode of the adapter, the current display page, the
- * active (displayed) page, the number of rows and columns
- * on the screen, and the size of the cursor.
- *
- * Returns ADAP_STATE *pstate The state of the video adapter.
- *
- * Version 6.00 (C)Copyright Blaise Computing Inc. 1989
- *
- **/
- #include <bscreens.h>
-
- void scgetvid(pstate)
- ADAP_STATE *pstate;
- {
- int row, column;
-
- scmode(&(pstate->mode), &(pstate->columns), &(pstate->act_page));
- pstate->cur_page = b_curpage;
- pstate->rows = scrows();
- pstate->curs_off = sccurst(&row, &column, &(pstate->curs_size.high),
- &(pstate->curs_size.low));
- }