Given the following code snippet:
// track the pen
do
{
EvtGetPen(&x, &y, &penDown);
// Don't do anything if no pen movement
if ((x != prevX || y != prevY))
{
WinDrawLine(prevX, prevY, x, y);
prevX = x;
prevY = y;
}
} while (penDown);
This is part of an app I created which captures a user's signature. I am
polishing the app and currently, the lines being drawn are rather "clunky"
and blocky. I would like to implement something similar to the notepad app
where the lines are smooth and controlled.
I've tried several different variations with minimal improvement and was
wondering if anyone here has an idea.
WinDrawPixel does not work since the lag time between each EvtGetPen creates
gaps in the lines drawn.
Any advice would be greatly appreciated!!
Eddi
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/