PocketMatrix forums

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

PocketPC/Phone

Hey, great job on 2.5 guys...

But, I have a new line of questioning.

How much, if at all have you guys tested PocketPC's that are also phones?

I seem to be getting some weird/inconsistent behaviors when a call comes in while playing a game. Details below.

Everything else seems to work super now but this is real important to our buying decision as our target for this particular client is only SmartPhone Pocket PC's.

1. (in portrait mode) When call comes the upper half of the screen displays what the program/screen looked like before the game launched. The lower half is a white screen.

2. During the call I can't see the phone panel.

3. When call ends, the device returns to the Program/Screen before the game had launched. On very limited occassions, the device hangs for a couple minutes.

4. I have to reopen the game to start playing again after the call ends. But, on very limited occassions, the game reopens with just a black screen.

Is there something I need to be doing to "intercept and handle" interuptions when they come in. Similar to the game being minimized maybe, or is Edge supposed to handle all that?
Just found out the "white" on the bottom half of the screen that I referred to be before appears to be the phone panel but it's masked with the game display. Occassionally just white, occasionally overlaid with the game screen.

Image
These problems might be related to GAPI. Would you like to test if the problem persists when trying the following:
- Building for Pocket PC 2002
- Building for Pocket PC 2003 with config->resolution set to ERS_EMULATELOWRES
- Building for Pocket PC 2003 with config->resolution set to ERS_DEVICEDEFAULT

I assume this is a device running Pocket PC 2003 SE?
I have to check with my partner to be absolutely sure but I'm pretty sure this this is happening even on a brand new PocketPC 2005.
I confirmed that this is happening on PocketPC 2005, OS 5.0
OK, would you like to test the following cases and tell us the results? We are using different methods for opening the display depending on the configuration settings and Windows Mobile version of the executable.

Build for Windows Mobile 2003 with config->resolution set to ERS_EMULATELOWRES. This will open the display using GAPI.

Build for Windows Mobile 2003 with config->resolution set to ERS_DEVICEDEFAULT. This will open the display through a new function.

Build for Windows Mobile 2005 (with Visual Studio 2005) with config->surfacedefault set to EST_SYSTEMAPI. This will open the display using DirectDraw.
What should config->resolution be set to for the 2005 test, or doesn't it matter?
When config->surfacedefault is set to EST_SYSTEMAPI for Windows Mobile 5, the config->resolution option is ignored.
OK, finally got some more info on this and I know what's causing it, just not what to do about it.

Seems its this section that causes it:

Code:
#ifdef ENABLE_HIGHRES
config->resolution = ERS_REQUIREHIGHRES; //This build requires support for high-resolution Windows Mobile devices
#else
config->resolution = ERS_EMULATELOWRES; //Try to emulate low-resolution on high-resolution devices by hardware
#endif


When ENABLE_HIGHRES is defined I get the behavior described/pictured above where the graphics stay overlaid on the phone notification.

HOWEVER, I think this only happens because I'm leaving ENABLE_HIGHRES defined even for QVGA devices. It doesn't seem to harm anything but it allows the same EXE to detect the screen resolution correctly without having to do two builds (one for QVGA without the define, and one for VGA with the define).

Separate builds will solve the issue for now (until someone comes out with a VGA SmartPhone or PPC/Phone) but I guess my question boils down to:

Is there a way to "reset" the display on a minimize event to get rid of the overlay in VGA mode or do I have to just do multiple builds with the define and without?
NEVER MIND!

I got it!!!!!

If I forget about using ENABLE_HIGHRES altogether (leave it undefined) and just set:

config->resolution = ERS_DEVICEDEFAULT;

it detects the resolution of the devices correctly even without ENABLE_HIGHRES defined and I can use one build for both VGA and QVGA.
Great to hear it's working now! Feel free to post a new topic in the forum if you encounter something else.