Date: Mon, 11 Dec 2000 13:18:40 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Gorden cc: djgpp AT delorie DOT com Subject: Re: about graphics mode mouse cursor In-Reply-To: <911sj3$lub@netnews.hinet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.