At 01:43 PM 5/12/2004, you wrote:
Sounds like a faulty API implementation to me: it works fine on all other devices, which handle negative extents very well. To
make it work on a T3, I'd have to check for negative extents and then swap fiddle with rectangle coordinates - a little clumsy.

void NormalizeRect(RectangleType *rect) { if (rect->extent.x < 0) { rect.topLeft.x += rect->extent.x; rect->extent.x = -rect->extent.x; } if (rect->extent.y < 0) { rect.topLeft.y += rect->extent.y; rect->extent.y = -rect->extent.y; } }

There you go... just call this before any OS calls that use RectangleType's to normalize them.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to