From: gienek AT zsk DOT lub DOT pl (gienek) Newsgroups: comp.os.msdos.djgpp Subject: Re: VESA mouse problem Date: Thu, 27 Jun 2002 18:47:26 GMT Organization: news.onet.pl Lines: 29 Sender: daro_news AT poczta DOT onet DOT pl@ntwklan-lu-62-233-188-162.devs.futuro.pl Message-ID: <3d1b5d3c.404732@news.onet.pl> References: <20020627095451 DOT 21975 DOT 00000345 AT mb-ms DOT aol DOT com> NNTP-Posting-Host: ntwklan-lu-62-233-188-162.devs.futuro.pl X-Trace: news.onet.pl 1025203516 2196 62.233.188.162 (27 Jun 2002 18:45:16 GMT) X-Complaints-To: abuse AT onet DOT pl NNTP-Posting-Date: 27 Jun 2002 18:45:16 GMT X-Newsreader: Forte Free Agent 1.21/32.243 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On 27 Jun 2002 13:54:51 GMT, platonman1 AT aol DOT com (Platonman1) wrote: >I have a problem with the mouse in VESA modes. >I'm trying to use it in mode 101h (640 * 480 256 colors), using interrupt 33h >But the coordinates returned arent correct : >* x goes from 0 to 80 >* y goes from 0 to 25 >Like text mode 03h.. >Anyone can help ?? Try this: void MouseRange(unsigned int x1,unsigned int y1,unsigned int x2,unsigned int y2) { __dpmi_regs r; r.x.ax=7; r.x.cx=x1; x.dx=x2; __dpmi_int(0x33,&r); r.x.ax=8; r.x.cx=y1; r.x.dx=y2; __dpmi_int(0x33,&r); } to set the range of mouse (like MouseRange(0,0,640,480)). Gienek.