home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c100 / 1.ddi / MOUSE.ZIP / M_TEXT_C.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-11  |  664 b   |  24 lines

  1. /*
  2.  *    m_text_cursor.c
  3.  *
  4.  *    Public Domain (p) March 1990 By Rodney Loos
  5.  *    Syntax modified by S. Sampson
  6.  */
  7.  
  8. #include "mouse.h"
  9.  
  10. /*
  11.  *    Set cursor mode.  Set cursor to text or software
  12.  */
  13.  
  14. void m_text_cursor(int cursor_type, int cursor_attr1, int cursor_attr2)
  15. {
  16.     __Mpar->m1 = 10;
  17.     __Mpar->m2 = cursor_type; /* if 0, use software cursor; 1, use hardware cursor */
  18.     __Mpar->m3 = cursor_attr1;/* if software cursor, defines screen mask */
  19.                   /* if hardware cursor, defines scan line start */
  20.     __Mpar->m4 = cursor_attr2;/* if software cursor, defines cursor mask */
  21.                   /* if hardware cursor, defines scan line stop */
  22.     mouse(__Mpar);
  23. }
  24.