Disabled switching to fullscreen mode in Windows when using OpenGL.

Something is seriously screwed up there, and I'm not even attempting
to get it working for this next release.

It seems that sometimes switching to fullscreen in Windows in software
mode causes crashes as well.  I really hate Windows ...


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@268 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2004-06-16 00:31:32 +00:00
parent 7975fa9ce3
commit e4c22f2815
1 changed files with 1028 additions and 1015 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: mainSDL.cxx,v 1.5 2004-06-13 18:14:03 stephena Exp $
// $Id: mainSDL.cxx,v 1.6 2004-06-16 00:31:32 stephena Exp $
//============================================================================
#include <fstream>
@ -381,7 +381,15 @@ void handleEvents()
theDisplay->resize(-1);
else if(key == SDLK_RETURN)
{
#ifdef WIN32
// Disable fullscreen OpenGL mode - FIXME
if(theSettings->getString("video") == "gl")
theDisplay->showMessage("Fullscreen OpenGL disabled");
else
theDisplay->toggleFullscreen();
#else
theDisplay->toggleFullscreen();
#endif
}
#ifdef DISPLAY_OPENGL
else if(key == SDLK_f && theUseOpenGLFlag)
@ -860,6 +868,11 @@ int main(int argc, char* argv[])
#ifdef DISPLAY_OPENGL
else if(videodriver == "gl")
{
#ifdef WIN32
// Disable fullscreen OpenGL mode in Windows for now - FIXME
theSettings->setBool("fullscreen", false);
#endif
theDisplay = new FrameBufferGL();
theUseOpenGLFlag = true;
if(theShowInfoFlag)