Page 1 of 1

GAPIDraw and non GAPI support

PostPosted: Oct 28, 2007 @ 2:15pm
by sfranchi
Hi,

I've a problem with a device we are using () where GAPI (gx.dll) reports an empty structure when calling GXGetDisplayProperties... so I think that's the problem running the GAPIDraw samples I've posted in other topic. Now, the GAPIDraw docs says that GAPI will not be used in unsupported devices: "Today there are some devices that return incorrect values in their GAPI calls (such as the IPAQ 38xx series and some of the Palmax @migo devices). On such devices GapiDraw will not use gx.dll but instead access the display frame buffer directly, using a surface created in system memory as a backbuffer.", this behaviour is automatic? I mean, GAPIDraw should not use GAPI if invalid values are returned from its calls?

I'm copying GX.DLL (v 1.2, the one provided by this distribution) in the application folder.

I need a hand with this in order to know if this device is supported or not by GAPIDraw and if we can adopt it (GAPIDraw) from now on for our different devices GUI's.

I did executed some other programs using PocketHAL (like ) so I think there is nothing wrong with it.

Thanks,

Re: GAPIDraw and non GAPI support

PostPosted: Nov 18, 2007 @ 4:47pm
by FrankW
You may find a working GAPI- GX.DLL here:


This Microsoft compatible DLL supports devices with Windows CE 3.0/HPC2000, Windows CE .NET 4.x, Windows CE 5.0 like yours and gives you the direct and fast hardware access to the display framebuffer without any slow emulation layer.
By enabling the included framebuffer cache option you may get an aditional speed improvement of 20%.

The new version 4.0 of GAPI for HPC's supports now 300 devices and many additional features like framebuffer rotation and scaling, touch rotation, PocketPC button emulation and supports devices with displays up to 1024x768 pixels with a color depth of 8, 15, 16, 24, and 32 bit.

Framebuffer rotate option:
Image
With this feature you can use 240x320- PocketPC portrait applications on device with 320x240- landscape displays.

PocketPC button mapping:
Image

The package contains also two GAPIDraw samples:
Image

The main intention to create this enhanced GAPI package is to support PocketPC- GAPI applications (games, emulators, media players, etc.) also on Windows CE devices like the Gizmondo or GPS- PNA's.

Frank

PostPosted: Nov 18, 2007 @ 10:49pm
by sfranchi
Hi Frank,

Actually the device has CE .NET 4.2 and works fine with your product, but the device is a Globalsat GV-370 (320x240) and it doesn't appears in your list. Choosing another one from Globalsat (GV-301) seems to be the same, as it works just fine the provided samples.

The only problem I've seen is that the samples didn't worked until I've checked the "use emulator" option.

Anyway, GAPIDraw was working fine also without a GX.DLL at all "as advertised".

Thanks a lot for your answer and great job with yout GX.DLL, I'll have it in my toolsbox :)

Thanks again,

Sandro.