Click to See Complete Forum and Search --> : sharing control between two fullscreen apps


dboyer
05-24-2004, 11:16 PM
I'm trying to write a very simple mame front end... and I have ended up with a quandry.

My front end is a real basic sdl app. It reads a list of roms (game images) from a directory, and displays a the list. You can then scroll up and down and press enter to select one. It then runs the xmame emulator.

However, both my application and mame are fullscreen (because i want them to be) and this causes a problem. i lose control of my application, but i can't see mame open. I have to kill both.

If i make mine non-fullscreen, it works just as expected. Is there some sort of trick to get it to give total control over to mame? perhaps drop out of fullscreen mode, THEN launch xmame?

dboyer
05-25-2004, 05:40 AM
nevermind, i just used the SDL_WM_ToggleFullScreen() function to drop out of fullscreen, execute the system call, then call SDL_WM_ToggleFullScreen() again when its done... sorta ghetto, but it will work, i suppose... just looks bad if you open a newer rom that takes more than a few seconds to load up...