summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-07-13 22:44:23 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-07-13 22:44:23 +0000
commit4ecc89dcc6516b10c6dab8b79dcaa435ec9e1435 (patch)
treeaf49a9d05531e9cf9c87b6ad543338c2d68de4ee /src/graphics.cpp
parent1ae9c54d120338e4165d168c72ef16eb7f76ac18 (diff)
downloadmana-4ecc89dcc6516b10c6dab8b79dcaa435ec9e1435.tar.gz
mana-4ecc89dcc6516b10c6dab8b79dcaa435ec9e1435.tar.bz2
mana-4ecc89dcc6516b10c6dab8b79dcaa435ec9e1435.tar.xz
mana-4ecc89dcc6516b10c6dab8b79dcaa435ec9e1435.zip
* Committing some cleanups by Doener
* Fixed some compiler warnings * Restored a USE_OPENGL check around OpenGL headers * Fixed error about FALSE not being defined * Fixed issue with font to become speechFont when the latter is not installed
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index dc6d0e75..16b8f67b 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -35,7 +35,7 @@ Graphics::Graphics():
mouseCursor(NULL)
{
if (useOpenGL) {
- #ifdef USE_OPENGL
+#ifdef USE_OPENGL
// Setup OpenGL
glViewport(0, 0, 800, 600);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
@@ -43,17 +43,17 @@ Graphics::Graphics():
SDL_GL_GetAttribute(SDL_GL_DOUBLEBUFFER, &gotDoubleBuffer);
logger->log("Using OpenGL %s double buffering.",
(gotDoubleBuffer ? "with" : "without"));
-
+
setTargetPlane(800, 600);
- #endif
+#endif
}
else {
- #ifndef USE_OPENGL
+#ifndef USE_OPENGL
setTarget(SDL_GetVideoSurface());
- #endif
+#endif
}
- if (config.getValue("cursor", 1)==1)
+ if (config.getValue("cursor", 1) == 1)
{
// Hide the system mouse cursor
SDL_ShowCursor(SDL_DISABLE);