summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-19 13:47:35 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-19 13:47:35 +0000
commitd8bb10d04c8b0d42dd774bef8531564413267276 (patch)
tree6545b8d2fb771f1cc45a6b308054acbcb069b51d /src/main.cpp
parent0f7927ab8aadc2c6f42c70d2809b357efc4ddb2f (diff)
downloadmana-client-d8bb10d04c8b0d42dd774bef8531564413267276.tar.gz
mana-client-d8bb10d04c8b0d42dd774bef8531564413267276.tar.bz2
mana-client-d8bb10d04c8b0d42dd774bef8531564413267276.tar.xz
mana-client-d8bb10d04c8b0d42dd774bef8531564413267276.zip
Added config option for GUI alpha.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a48b184b..8d36531d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -33,14 +33,11 @@
#include <iostream>
#include <guichan.hpp>
-#include <SDL/SDL.h>
#include <physfs.h>
#include <libxml/xmlversion.h>
#include <libxml/parser.h>
-
-#ifdef USE_OPENGL
+#include <SDL.h>
#include <SDL_opengl.h>
-#endif
#ifdef __USE_UNIX98
#include <sys/stat.h>
@@ -174,6 +171,7 @@ void init_engine()
config.setValue("hwaccel", 0);
config.setValue("screen", 0);
config.setValue("sound", 1);
+ config.setValue("guialpha", 0.8f);
#ifdef __USE_UNIX98
char *chatlogFilename = new char[400];
sprintf(chatlogFilename, "%s/.manaworld/chatlog.txt", userHome);