Hi!

> Here's one problem I had with a Visor Prism:
>
>  // Acquire handle to draw window
> deviceDrawWindowH = WinGetDrawWindow();
> deviceDrawWindowPtr = BmpGetBits(WinGetBitmap(deviceDrawWindowH));
>
> I use this piece of code to obtain a ptr to the screens bitmap buffer in order to 
>copy directly to screen memory. This works perfect
> on Palm devices, but returned an invalid memory address on the Visor.
>

Just minutes after sending this message I wondered "why am I using WinGetDrawWindows() 
here? Why not WinGetDisplayWindow()?". I changed
my code to use WinGetDisplayWindow() and now the Visor is very happy about direct 
access to its screen memory.

Cheers,
Tilo



-- 
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