delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/11/06:20:27

Date: Mon, 11 Dec 2000 13:18:40 +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 graphics mode mouse cursor
In-Reply-To: <911sj3$lub@netnews.hinet.net>
Message-ID: <Pine.SUN.3.91.1001211131549.12567D-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, 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 -


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