summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-04 17:28:48 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-04 17:28:48 +0000
commite571ede8b977f7e69dd7ee28c0edc04cd71400d3 (patch)
tree9e55bf6dcf5397b004b202a8080ec85f1f9319a2
parent96324c4a8e938cdb9a7b0473e425e0ba1b53a3a2 (diff)
downloadmana-e571ede8b977f7e69dd7ee28c0edc04cd71400d3.tar.gz
mana-e571ede8b977f7e69dd7ee28c0edc04cd71400d3.tar.bz2
mana-e571ede8b977f7e69dd7ee28c0edc04cd71400d3.tar.xz
mana-e571ede8b977f7e69dd7ee28c0edc04cd71400d3.zip
Setting screen resolution to 16 bit (in windows it increase fps a lot)
needs testing on other oses
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 51e39335..d1e43560 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -207,9 +207,9 @@ void init_engine()
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
#endif
- screen = SDL_SetVideoMode(800, 600, 32, displayFlags);
+ screen = SDL_SetVideoMode(800, 600, 16, displayFlags);
if (screen == NULL) {
- std::cerr << "Couldn't set 800x600x32 video mode: " <<
+ std::cerr << "Couldn't set 800x600x16 video mode: " <<
SDL_GetError() << std::endl;
exit(1);
}