This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Samsung BlackJack: Problems exiting full screen?


Samsung BlackJack: Problems exiting full screen?

Postby Ludimate » May 21, 2007 @ 9:57pm

Ludimate
pm Member
 
Posts: 21
Joined: Jun 29, 2006 @ 8:40pm


Postby Dan East » May 22, 2007 @ 2:18am

Are you calling SHFullScreen when your app's main window is destroyed, to restore the SIP, Taskbar, etc?

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Ludimate » May 22, 2007 @ 11:04am

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
Ludimate
pm Member
 
Posts: 21
Joined: Jun 29, 2006 @ 8:40pm


Postby Dan East » May 22, 2007 @ 11:53am

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
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Ludimate » May 23, 2007 @ 12:56pm

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
Ludimate
pm Member
 
Posts: 21
Joined: Jun 29, 2006 @ 8:40pm


Postby Dan East » May 23, 2007 @ 5:02pm

Try calling GetDesktopWindow, and sending a redraw message to the HWND it returns.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Ludimate » May 23, 2007 @ 6:20pm

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
Ludimate
pm Member
 
Posts: 21
Joined: Jun 29, 2006 @ 8:40pm


Postby Dan East » May 23, 2007 @ 6:29pm

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

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Kzinti » May 29, 2007 @ 9:07am

Currently being investigated. Ludi, check your email.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron