home *** CD-ROM | disk | FTP | other *** search
- /*
- * m_graph_cursor.c
- *
- * Public Domain (p) March 1990 By Rodney Loos
- * Syntax modified by S. Sampson
- */
-
- #include <dos.h>
- #include "mouse.h"
-
- /*
- * Create a graphic cursor
- */
-
- void m_graph_cursor(int x_hot, int y_hot, void far *cmask)
- {
- struct SREGS msregs;
- union REGS mousreg;
- unsigned maskseg, maskoff;
-
- maskseg = FP_SEG(cmask);
- maskoff = FP_OFF(cmask);
-
- mousreg.x.ax = 9;
- mousreg.x.bx = x_hot; /* horizontal hot spot of cursor */
- mousreg.x.cx = y_hot; /* vertical hot spot of cursor */
- mousreg.x.dx = maskoff; /* offset of mask */
-
- segread(&msregs); /* copy the current segment registers to msregs */
- msregs.es = maskseg; /* segment address of cursor mask */
- int86x(0x33, &mousreg, &mousreg, &msregs);
- }