Mail Archives: djgpp/1997/11/09/04:02:14
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 -