summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-08 18:34:50 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-08 18:34:50 +0000
commit16ef8c97d9da0f2346af1f6426944379730fa6f4 (patch)
treec7e566f60ad8711aab654017b48c8df85ec3f2d1 /src
parent813538f6eeafac626c5e3eb9f7ab202178cbb765 (diff)
downloadmana-client-16ef8c97d9da0f2346af1f6426944379730fa6f4.tar.gz
mana-client-16ef8c97d9da0f2346af1f6426944379730fa6f4.tar.bz2
mana-client-16ef8c97d9da0f2346af1f6426944379730fa6f4.tar.xz
mana-client-16ef8c97d9da0f2346af1f6426944379730fa6f4.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/gui/setup.cpp7
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