Hrm, wasn't 3.5 the first OS that really supported >1 bit depth? When was WinCreateOffscreenBitmap actually provided?
What happens if you make the WindowFormatType parameter 'nativeFormat'? -Ken On Thu, 2003-01-30 at 18:11, Eric Snider wrote: > I'm (still) finishing up my game. I just ran into a > bug when emulating a Palm III (with POSE 3.5 under Mac > OS 9.2.2) running the debug version of Palm OS 3.3. I > haven't seen this error message on any of the other > debug ROMs that I've tried. > > Eric's Solitaire (1.0) called SysFatalAlert with > the message:"WindowNew.c, Line:3261, Bad window". > > The code in question looks like this: > > m_Offscreen = WinCreateOffscreenWindow( width, height, > screenFormat, &error); > > Width is 7, height is 8, and I've already successfully > created some offscreen windows at this point. I can't > see any difference between the code here and my other > code that calls WinCreateOffscreenWindow. Oh yeah - > and I'm running the display in 2 bit mode. > > So... any ideas? What is this error meant to tell me? > > Thanks! > > Eric > p.s. If you help me figure this out I'll set you up > with a free copy of my game once it's shipping. :-) > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see >http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
