diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-08 18:34:50 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-08 18:34:50 +0000 |
commit | 16ef8c97d9da0f2346af1f6426944379730fa6f4 (patch) | |
tree | c7e566f60ad8711aab654017b48c8df85ec3f2d1 /src/gui | |
parent | 813538f6eeafac626c5e3eb9f7ab202178cbb765 (diff) | |
download | mana-16ef8c97d9da0f2346af1f6426944379730fa6f4.tar.gz mana-16ef8c97d9da0f2346af1f6426944379730fa6f4.tar.bz2 mana-16ef8c97d9da0f2346af1f6426944379730fa6f4.tar.xz mana-16ef8c97d9da0f2346af1f6426944379730fa6f4.zip |
*** empty log message ***
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/setup.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 |