From: David Jenkins Newsgroups: comp.os.msdos.djgpp Subject: Re: Using mouse in DJGPP Date: Sat, 8 Nov 1997 15:00:13 +0000 Organization: None Distribution: world Message-ID: <0mhfaAA95HZ0Ew1g@jenkinsdavid.demon.co.uk> References: <34647492 DOT 67CD AT mbox5 DOT swipnet DOT se> NNTP-Posting-Host: jenkinsdavid.demon.co.uk MIME-Version: 1.0 Lines: 25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <34647492 DOT 67CD AT mbox5 DOT swipnet DOT se>, Thomas Larsson writes >Hi > >I'm making a simple drawing program for BMP pictures in DOS. >I (of course) have mousesupport. > >The problem is that when I move the mouse fast, it doesn't draw a line >anymore, just dots. >Is there any way I can make the program to draw a line when I move the >mouse fast? (It works fine when I move the mouse slow...) > 2 options as far as I can see. Either, Store the old mouse_x and mouse_y from the last putpixel, then do a line from that to the new one. OR, Optimise it as much as possible, so that it reads the mouse x,y as fast as you move it. -- http://www.jenkinsdavid.demon.co.uk for C programmers. David Jenkins