www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/22/03:44:34

Date: Wed, 22 Nov 2000 10:38:30 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Gorden <gorden AT ms9 DOT url DOT com DOT tw>
cc: djgpp AT delorie DOT com
Subject: Re: about bios graphics mode mouse cursor
In-Reply-To: <8vfkg2$ahl@netnews.hinet.net>
Message-ID: <Pine.SUN.3.91.1001122103646.20094F-100000@is>
MIME-Version: 1.0
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019