SDL. How to hide fullscreen window - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: SDL. How to hide fullscreen window (/thread-256.html)
SDL. How to hide fullscreen window - e40pud - Mar 11, 2010 06:09 AM
Is this possible to hide fullscreen window?
How can I do this?
SDL. How to hide fullscreen window - mysteriouspants - Mar 11, 2010 01:23 PM
Probably SDL_SetVideoMode with fullscreen=false.
I don't remember if it's going to work if you have already called SDL_SetVideoMode; there's probably some existing code in CrystalSpace or Irrlicht that shows how to do this already if you want to go digging.
http://irrlicht.svn.sourceforge.net/viewvc/irrlicht/trunk/source/Irrlicht/CIrrDeviceSDL.cpp?view=markup&pathrev=2914 on line 449 for starters; because irr::CIrrDeviceSDL's constructor has already been run, which will call SDL_SetVideoMode, the rot in the ::run method should be the prerequisites to calling it again to change the video mode. Most of that is probably Irrlicht internals. I haven't read the whole listing, but that's a quick search and a good starting point for you.