On Thu, 2003-09-18 at 16:10, Aaron Ardiri wrote:
> > I need to scroll the draw window by step of 1 on a 320x320 screen 
> > (PalmOS 5) but this function seems to only allow only step of 2.
> > Is there a way to fix this problem ?

> moving 1 pixel on 8bpp requires BYTE moves, and, that can be
> *slow* :) consider the limit of 2 an optimization the API's 
> have taken.

Surely this is because the window's coordinate system is
kCoordinatesStandard rather than an "optimisation"?

Chris, what's the coordinate system for this window?

I'd expect that either you haven't changed it, or it's
kCoordinatesStandard.  On Hi-res devices, this means pixel-doubled.

Try calling WinSetCoordinateSystem(kCoordinatesNative) to set the window
so that it's single-pixel oriented, and then try your
WinScrollRectangle. (and of course, set the window back to
kCoordinatesStandard afterwards too).

-Ken


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to