Around 16 o'clock on May 6, Mosfet wrote:

> I'm working on a brush tool for a paint program and have a question about 
> mouse event granularity. The problem is I need to get the coordinates of all, 
> (or as many as possible), pixels covered by the mouse pointer by a mouse move 
> when the tool is selected.

Mice report positions at a fixed frequency, usually between 60 and 120 hz.
GetMotionEvents will return all of these, but (as you've discovered), 
that really isn't any better than just tracking motion.

It's not hard to interpolate between the reported coordinates; you'll want 
to use something higher order than linear though; that leaves terrible 
jaggies.

Keith Packard        XFree86 Core Team        Compaq Cambridge Research Lab


_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to