home *** CD-ROM | disk | FTP | other *** search
- /* 88-10-10 Jahns csr_shape[FAT] 0x0507 -> 0x0407 */
- /* 89-10-05 Vogt N. csr_shape[HIDDEN] 0x2000 -> 0x3000 (mono) */
- /* for some new HGC's with LSI chip */
-
-
-
- /* (c) 1985, Phoenix Computer Products Corp. and Novum Organum, Inc. */
- /***
- * Name: vidcsrtyp -- change the appearance of the cursor
- *
- * Synopsis: void vidcsrtyp();
- * int mode;
- * vidcsrtyp( mode );
- *
- * Description: Changes the cursor appearance to one of several pre-defined
- * types.
- *
- * Returns: Nothing.
- *
- * (C) Novum Organum, Inc. 1985
- *
- ***/
-
- #include "cptpdf.h"
- #include "psys.h"
-
- static _csr_type=CSR_NORMAL;
-
- vidcsrtyp ( type )
- int type;
- {
- static ushort csr_shape[2][6] =
- /* HIDDEN, THIN ,NORMAL, FAT ,BLOCK , DASH cursor appearance */
- {{0x2000,0x0707,0x0607,0x0407,0x0007,0x0404}, /* for RGB screen */
- {0x3000,0x0D0D,0x0C0D,0x090D,0x000D,0x0707}}; /* for monochrome screen*/
-
- REGIS regs;
- int prv;
-
- if (type == CSR_GET) return(_csr_type);
-
- type %= 6;
- regs.ax = TOHIBYTE(V_SETCURSTYP);
- regs.cx = csr_shape[ (vidgetmode()==VM_MONOCHROME) ][ type ];
- syivexe( V_VID_INTRPT, ®s );
- prv = _csr_type;
- _csr_type = type;
- return (prv);
- }
-