>I have an app that does some bitmap drawing.  Everything works fine, except
>on 4.0 debug roms, where I get a "bad window" error from WinDrawBitmap().
>The bitmaps I am drawing are 8 bit, and I have changed the screen depth to
>be the maximum supported depth.  Is POSE complaining because the depth of
>the bitmap does not match the depth of the device?

This is an OS warning, not a Poser warning.

>If I run on a 4.0
>release rom, or even an earlier debug rom, all is well.  I didn't find
>anything in the documentation that indicated the bitmap format was changing
>in 4.0.  Any suggestions?

You'll get this warning if a window has a bitmap, and the depth of 
that bitmap is greater than the maximum depth of the display. So if 
you create an offscreen window which is 8 bits deep, and are running 
on a device which has a max display depth of 4 bits, you'll get this 
warning. In pre-4.0 versions of the OS, the check was using a fixed 
value of 8 for the max display depth.

As to why the OS should care about this, got me...

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

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

Reply via email to