PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

GetBuffer on iPAQ 3870

I've been using GetBuffer/ReleaseBuffer to do some custom drawing on the BackBuffer. Works great, except I just tried my program on an iPAQ 3870. It runs fine, but whenever my program tries to do it's custom drawing it crashes. This only happens on an iPAQ 3870. Any ideas? I'm using GapiDraw 3.5c without PocketHAL. Thanks.
The 3870 uses a 90 degrees rotated display (as compared to -90 on the IPAQ 3600). Thus xPitch and yPitch are pretty strange.

Check the plasma demo for some references...
Hi Johan, do you have a code sample of how I would just draw a pixel to the screen using xPitch and yPitch, that would work on all devices? Thanks.
Check the plasma demo for some references...


:)
Is it possible to create my own off-screen surface that's not rotated and then blit it to the backbuffer?
It's possible but quite slow. If you know what you're doing you can improve the speed of such a rotated operation to be quite fast however (by copying in small blocks and pre-reading one pixel from each row to trigger an asynchronous cache fill etc).

Or you can use the PocketHAL-enabled version of GapiDraw.
Thanks Johan, but the PocketHAL version doesn't seem to respond to the GDDISPLAY_HI_RES_AWARE flag so I can't use it. My program always loads up in QVGA mode for VGA Pocket PCs if I use PocketHAL. Do you know this will be fixed in the next update of GapiDraw? Thanks.
PocketHAL version doesn't seem to respond to the GDDISPLAY_HI_RES_AWARE flag so I can't use it


Unfortunately PocketHAL still does not support high-resolution VGA mode. So there's little I can do I'm afraid.