From 16ef8c97d9da0f2346af1f6426944379730fa6f4 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Fri, 8 Apr 2005 18:34:50 +0000 Subject: *** empty log message *** --- src/gui/setup.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/setup.cpp') diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp index b0a35380..9f304b61 100644 --- a/src/gui/setup.cpp +++ b/src/gui/setup.cpp @@ -207,7 +207,14 @@ void Setup::action(const std::string &eventId) displayFlags &= ~SDL_FULLSCREEN; } + displayFlags |= SDL_DOUBLEBUF; + screen = SDL_SetVideoMode(screenW, screenH, bitDepth, displayFlags); + if (screen == NULL) { + std::cerr << "Couldn't set " << screenW << "x" << screenH << "x" << + bitDepth << " video mode: " << SDL_GetError() << std::endl; + exit(1); + } /* if (displayFlags & SDL_FULLSCREEN) { #ifdef WIN32 -- cgit v1.2.3-70-g09d2