Date: Wed, 22 Nov 2000 10:38:30 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Gorden cc: djgpp AT delorie DOT com Subject: Re: about bios graphics mode mouse cursor In-Reply-To: <8vfkg2$ahl@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, 20 Nov 2000, Gorden wrote: > Why I cant not changce mouse cursor in bios graphics, and I post my source > My problem is why I can not regist my new mouse cursor, in main() function [snip] > /* register my new mouse cursor */ > r.x.ax = 0x0009; > r.x.bx = 0; > r.x.cx = 0; > r.x.dx = (int) mouse_cursor; /* problem in here */ > r.x.es = _my_cs(); /* problem in here */ > __dpmi_int(0x33, &r); You need to copy the cursor data into the transfer buffer, and then put the segment:offset of the transfer buffer into ES:DX above. See section 18.2 of the DJGPP FAQ list for more explanations and an example.