Frederic Bouvier wrote:

Quoting Melchior FRANZ :



* Curtis L. Olson -- Thursday 11 November 2004 15:57:
* > Erik Hofman wrote:
* * * Jon Stockill -- Thursday 11 November 2004 15:19:


* When exiting, if the screen resolution has been changed it's not
restored, effectively leaving you with a small window onto a large
desktop, which you can pan around.


This is a known limitation of SDL.


Are you sure? Other SDL apps seem to return to the original desktop
resolution just fine.


Indeed! Our problem is that we aren't really calling SDL_Quit(). It's in
fg_os_sdl.cxx' fgOSExit(), but this function is never actually used.
fg_exit() calls fgExit() instead.



How about putting the SDL_Quit() in an atexit handler installed by the FG's SDL
initialization routine ?



I'm pretty sure this was working at some point when the SDL code was originally added, but something must have been changed or rearranged and we are no longer calling SDL_Quit() on exit ... :-(


Curt.

--
Curtis Olson        http://www.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:        2f585eeea02e2c79d7b1d8c4963bae2d


_______________________________________________ Flightgear-users mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-users 2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to