home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 4.ddi / TOOLS.4 / TCTSRC1.EXE / SCGETVID.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  1010 b   |  35 lines

  1. /**
  2. *
  3. * Name        SCGETVID - Get the state of the video adapter.
  4. *
  5. * Synopsis    scgetvid(pstate);
  6. *
  7. *        ADAP_STATE *pstate  Pointer to structure in which to
  8. *                    return the video state.
  9. *
  10. * Description    This function fetches the complete state of the
  11. *        current video adapter and places it in pstate.
  12. *        The information returned includes the current display
  13. *        mode of the adapter, the current display page, the
  14. *        active (displayed) page, the number of rows and columns
  15. *        on the screen, and the size of the cursor.
  16. *
  17. * Returns    ADAP_STATE *pstate  The state of the video adapter.
  18. *
  19. * Version    6.00 (C)Copyright Blaise Computing Inc.  1989
  20. *
  21. **/
  22. #include <bscreens.h>
  23.  
  24. void scgetvid(pstate)
  25. ADAP_STATE *pstate;
  26. {
  27.     int row, column;
  28.  
  29.     scmode(&(pstate->mode), &(pstate->columns), &(pstate->act_page));
  30.     pstate->cur_page = b_curpage;
  31.     pstate->rows = scrows();
  32.     pstate->curs_off = sccurst(&row, &column, &(pstate->curs_size.high),
  33.                    &(pstate->curs_size.low));
  34. }
  35.