www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/09/04:02:14

From: David Jenkins <me AT jenkinsdavid DOT demon DOT co DOT uk>
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

In article <34647492 DOT 67CD AT mbox5 DOT swipnet DOT se>, Thomas Larsson <thomas.lars
son AT mbox5 DOT swipnet DOT se> 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

- Raw text -


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