Hi,

It seems there is a bug with WinDrawRectangle when used on high density
offscreen windows. Here are the steps to reproduce the problem:

1. Create a bitmap with BmpCreate
2. Create a HD bitmap from the previous one with BmpCreateBitmapV3
3. Create an offscreen window from the HD bitmap with WinCreateBitmapWindow
4. Set the draw window to this offscreen window, set the foreground and
background colors, etc, but leave the standard coordinate system.
5. Call WinDrawRectangle, specifying a rectangle whose size is exactly the
same as the bitmap size.
6. And Simulator 5R3 crashes.

Everything works fine if you draw a rectangle one pixel (in fact, one
standard coordinate) less than the height of the bitmap.

Does anybody else noticed this bug ? Or does the problem come from my code ?
I'm not sure it is ok to create an offscreen window from a HD bitmap, since
this is not explicitly stated in the documentation...

Pascal




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

Reply via email to