On 14 Dec 2008, at 07:22, Peter Pindsle wrote:

> When running the opengl (glut) version of fgfs on linux, if I use the
> --enable-game-mode option, it sets the display correctly and all works
> beautifully.  However, once I leave fgfs, the screen resolution stays
> set to whatever I specified on the fgfs command line instead of
> reverting to the original desktop size.
>
> I couldn't find a solution to this, but after quite a bit of  
> searching,
> I found that fgfs tells glut to enter 'game mode' on initialisation,  
> but
> never tells it to leave.  Not sure if this perhaps happens  
> automatically
> on exit with the Windows glut libraries, but it doesn't seem to with  
> the
> freeglut build I am using.  (freeglut 2.4.0 on Fedora 10)
>
> So, I added an atexit() callback for glutLeaveGameMode() and now it
> correctly reverts to the original screen resolution when I exit.

I agree with the reasoning here, but I've never used game mode in my  
life, and I'm slightly surprised that we're still using GLUT at all, I  
thought everything was running through osgViewer now. It's not an area  
of the code I feel qualified to give a yes or no answer to, I'm afraid.

Tim Moore is probably the person with the clearest idea how GLUT fits  
into things nowadays.

Thanks for the contribution, regardless.

James


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to