On Mon, 6 May 2002, Mosfet wrote:

> Hi,
> 
> 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. By default if you move the mouse from one part of 
> the widget to another it only sends a few MotionNotify (XMotionEvent) events 
> while the cursor is in motion, not events for every pixel covered.

   That's because those pixels aren't covered.  Mouse acceleration
causes the pointer to move in multiples of pixels rather than   
in single pixels.  The server isn't going to add extra motion
events to interpolate.  You'll have to interpolate them yourself.


                        Mark.

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

Reply via email to