From d3202d55214abb4e6df30a54eceff3b24746ee13 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sat, 9 Jul 2005 11:00:51 +0000 Subject: Some win32 fixes most of all --- src/gui/setup.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/setup.cpp') diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp index a01e804f..b839c459 100644 --- a/src/gui/setup.cpp +++ b/src/gui/setup.cpp @@ -215,12 +215,12 @@ void Setup::action(const std::string &eventId) displayFlags &= ~SDL_FULLSCREEN; changed = true; } - + if(changed) { displayFlags |= SDL_DOUBLEBUF; if (useOpenGL) { - displayFlags |= SDL_OPENGL; - SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + //displayFlags |= SDL_OPENGL; + //SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); } screen = SDL_SetVideoMode(screenW, screenH, bitDepth, displayFlags); @@ -228,7 +228,7 @@ void Setup::action(const std::string &eventId) std::cerr << "Couldn't set " << screenW << "x" << screenH << "x" << bitDepth << " video mode: " << SDL_GetError() << std::endl; - exit(1); + exit(1); } } -- cgit v1.2.3-70-g09d2