Bobby Purcell wrote:

I suppose that might work; however, since this window
is solely for blitting, I'd rather not use "bitmap"
related APIs.  I don't see why
'WinCreateOffscreenWindow' shouldn't work.  This is
what this API was created for.

Here's a snippet of code that I'm using:

screenBuffer2H = WinCreateOffscreenWindow(320, 320,
nativeFormat, &error);

As I mentioned before, this API call, returns error
code '1283'.  I have no idea what this error means,
but when I reduce the size of the offscreen window,
the error goes away.


Hm, IIRC, you will have to use 160x160 as width and height to get 320x320 on high density devices?

windowOffScreen = WinCreateOffscreenWindow(width, height, nativeFormat/*screenFormat*/, &error);

Test it with 160x160 and get the bitmap pointer from the offscreen window and retrieve the bitmap width and height. This will show you, that the bitmap is 320x320.

The background is that when you not switch to high density mode, every coord will be adjusted from 160x160 to the correct screensize. When you try to allocate 320x320 and the device has the high density feature and the density is set to normal, then the system tries to allocate 640x640x16. Which probably fails.

Regards
Henk

--
-------------------------------------------------------------------------
  Henk Jonas                                            [EMAIL PROTECTED]
  Palm OS � certified developer

  Please contact me, if you need an off-side contract worker.
-------------------------------------------------------------------------

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

Reply via email to