Mail Archives: djgpp/2000/12/11/06:20:27
On Mon, 11 Dec 2000, Gorden wrote:
> /* how can changce this function for djgpp */
> void mouse_cursor(int x, int y, int *mask) /* how can changce this
> function for djgpp */
> {
> union REGS r;
> struct SREGS s;
>
> r.x.ax = 9;
> r.x.bx = x;
> r.x.cx = y;
> r.x.dx = FP_OFF(mask);
> s.es = FP_SEG(mask);
>
> int86x(0x33, &r, &r, &s);
> }
See sections 18.2 and 18.4 of the DJGPP FAQ. In a nutshell, you need to
copy the mouse pointer data into the transfer buffer (using dosmemput
function), then put the segment and the offset of the transfer buffer
into r.x.es and r.x.dx, and call __dpmi_int.
- Raw text -