PocketMatrix forums

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

Samsung BlackJack: Problems exiting full screen?

Hi,

I'm getting reports that in Samsung BlackJacks, exiting a full screen game (which uses PHAL) causes the home screen to get messed up. A typical description of such "effect" is:
"... after I play and exit the game, the top function bar of the home screen is blank and the second line is the normal function bar."

The game is a plain vanilla full screen app, and is not changing the home screen or anything outside itself.

A few places mention BlackJack firmware problems, for example:
http://www.modaco.com/index.php?showtopic=250366

- Is anyone aware of this problem?

Thanks for any info,

Jorge Diogo
http://Ludimate.com
Are you calling SHFullScreen when your app's main window is destroyed, to restore the SIP, Taskbar, etc?

Dan East
I'm using PHAL, which must be calling SHFullScreen at exit time, as there are no problems on other Smartphones or PocketPCs.

It could be one of the issues found by the PocketTV Team, but there's apparently no more information available about it:
http://www.pocketgamer.org/showthread.p ... eadid=6341

Thanks,

Jorge Diogo
http://Ludimate.com
Well, it could be a firmware issue, but I doubt it. Windows isn't redrawing those windows when your app closes, so it sounds like something more minor than the locking up issues the PocketTV guys encountered.

Are you destroying the Display object when your app exits? I don't know if Thierry is around here much anymore to comment, but I don't see an explicit method to close a display, so I assume it is done in the destructor.

If that doesn't help, I would try calling SHFullScreen when your main window receives WM_DESTROY, to restore the various system windows in case PocketHAL is not.

Dan East
Dan, thanks for the suggestion. I strongly suspect PHAL is already doing this, since it works in all other Windows Mobile devices, including 320x240 Smartphone devices.
This image shows the effect, before running the full screen game and after, where an extra bar appears at the top and the email bar disappears:
http://ludimate.com/lab/blackjack-issue.jpg

The home screen changes appear to only go away with a phone reboot, which is far from being a nice thing.
Best Regards,

Jorge Diogo
http://Ludimate.com
Try calling GetDesktopWindow, and sending a redraw message to the HWND it returns.

Dan East
Hi,

Just found something important about this problem: apparently, simply calling GXOpenDisplay changes the home screen for good:

"The latest fix is discovering that GAPI is what messes up the BlackJack display (and other devices as well). I had previously tried using GAPI to get the display address and then used the RAWFRAMEBUFFER method if GAPI failed, but that call to GXOpenDisplay() is what messes things up on several new devices. On the BlackJack it would create a "second" taskbar and not allow you to get rid of it until you power cycled the device."

http://www.modaco.com/index.php?showtop ... ntry816301

More information here:
http://forums.cingular.com/cng/board/me ... e.id=25726

So it looks like an incorrectly implemented GAPI in BlackJacks - I've forwarded this information to Thierry so that it hopefully can be fixed in PocketHAL.
Dan, in any case thanks for your suggestions, they are much appreciated.

Best Regards,

Jorge Diogo
Try using a standard gx.dll instead of the one shipped with the device.

Dan East
Currently being investigated. Ludi, check your email.