Page 1 of 1

Samsung BlackJack: Problems exiting full screen?

PostPosted: May 21, 2007 @ 9:57pm
by Ludimate

PostPosted: May 22, 2007 @ 2:18am
by Dan East
Are you calling SHFullScreen when your app's main window is destroyed, to restore the SIP, Taskbar, etc?

Dan East

PostPosted: May 22, 2007 @ 11:04am
by Ludimate
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

PostPosted: May 22, 2007 @ 11:53am
by Dan East
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

PostPosted: May 23, 2007 @ 12:56pm
by Ludimate
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:


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

PostPosted: May 23, 2007 @ 5:02pm
by Dan East
Try calling GetDesktopWindow, and sending a redraw message to the HWND it returns.

Dan East

PostPosted: May 23, 2007 @ 6:20pm
by Ludimate
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

PostPosted: May 23, 2007 @ 6:29pm
by Dan East
Try using a standard gx.dll instead of the one shipped with the device.

Dan East

PostPosted: May 29, 2007 @ 9:07am
by Kzinti
Currently being investigated. Ludi, check your email.