[SDL] Greetings, and a question

Neil Bradley nb at synthcom.com
Thu Jul 11 12:52:01 PDT 2002


Greetings fellow SDLians,

I'm currently working on my arcade emulator, Retrocade (sorry, home page
was hijacked by a search engine), and have a mostly completed SDL "port"
of it. I'm pleased to say that things are working great! If it matters,
I'm running under Windows and it'll eventually be ported to the MacOS and
a few Linuxen, too.

What I'm wondering about is a "clean" way for my app to realize that it is
about ready to have focus taken away from it so it can go to sleep, and
later wake up when focus has been restored? I'm aware of the method of
checking the return code of the blit call, but that seems like throwing a
rock through a window to see if a light comes on. Does the system pump an
event through by chance?

Also, is there a way to effectively "shut down" SDL and return the desktop
to normal without doing an SQL_Quit()? I'd like to be able to spew out an
ASSERT() dialog box on a restored desktop to find out just what happened,
and to make it clean for my end users just in case this happens.

Thanks!

-->Neil

-------------------------------------------------------------------------------
Neil Bradley            What are burger lovers saying
Synthcom Systems, Inc.  about the new BK Back Porch Griller?
ICQ #29402898	        "It tastes like it came off the back porch." - Me






More information about the SDL mailing list