delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/08/22:17:43

From: Peter Steele <ps13 AT ic DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Mouse graphics
Date: Tue, 08 Apr 1997 18:33:35 +0100
Organization: Imperial College of Science, Technology and Medicine
Message-ID: <334A816F.F058107@ic.ac.uk>
NNTP-Posting-Host: goedel.ma.ic.ac.uk
Mime-Version: 1.0
Lines: 49
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am having problems changing the shape of the mouse using interupts, my
code goes like follows,

I have a definition for mouses new shape like

static unsigned mousenewshape[]=
{
0x0001,
0xffff,
etc,
}


and I have a function defined as follows

Mouse_Shape(int hotx,int hoty,unsigned *mask)
{

   __dpmi_regs r;
   int c;

   for(c=0;c<=128;c++)
       _farpokeb(__dos_ds,(__tb & 0x000fffff)+c,mask[c]};

   r.x.dx = (__tb & 0x000fffff) & 0xffff;
   r.x.es = (__tb & 0x000fffff) & 0xffff0000 >>4;
   r.x.ax = 0x09;
   r.x.bx = hotx;
   r.x.cx = hoty;
   __dpmi_int(0x33,&r);

}

and I call it in the following way

Mouse_Shape(0,0,mousenewshape);


Yet this does not seem to work.

Has anyone any ideas?

Thanks in advance

Peter Steele
reply to mail group and mail please


**p DOT steele AT ic DOT ac DOT uk**

- Raw text -


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