PocketMatrix forums

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

Switch between 2 GAPI apps

I want to switch between 2 fullscreen GAPI apps (one is the menu, that spawns mini games). It seems to work okay to have a minigame take over the fullscreen area, and when this minigame is closed, the main menu will show up correct. However after quiting the main app, I get corrupted graphics in the main window bar. I guess this is caused when swapping between the 2 apps (Doesn't happen when I start the main menu and quit without starting a mini game).

Does somebody know if we can
- refresh the entire PPC desktop (invalidate in W32)
- get rid of this graphics bug?

Thanx
Ivo
Hi,

I guess the easiest way to solve this issue would be to suspend/resume the full screen access whenever you switch between your applications.

I will add SuspendDisplay and ResumeDisplay in GapiDraw 1.03. Basically they will lock the entire display, preventing direct access and back surface flipping, allowing other GAPI applications to use the buffer exclusively (using the gapi calls GXSuspend and GXResume). If you could you send me an email to johan.sanneblad@home.se with your email address I will send you an early version of 1.03.

/Johan
This sounds like you are flipping the backbuffer after the program has brought back the start button/etc. Does your minigame call SHFullScreen, and if so, is there any way it's being called before the game does its final backbuffer flip?

Then again, it could be the dual GapiDraw programs causing the problem. Is there any way you can try running your minigame by itself?

-Ionitor
This sounds like the same problem reported earlier in another thread on here. It had to do with attempting a screen update after capturing the WM_DESTROY message.