summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-21 20:14:08 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-21 20:14:08 +0000
commitf7e4e3acb009dc09dffc98ff7b59b0260e7ecc28 (patch)
tree49c4e65659b17ff06d8ad26fa51424cf9215e305 /src/main.cpp
parent43e20b978e424d01ecbe49950b41111081a3ee43 (diff)
downloadmana-f7e4e3acb009dc09dffc98ff7b59b0260e7ecc28.tar.gz
mana-f7e4e3acb009dc09dffc98ff7b59b0260e7ecc28.tar.bz2
mana-f7e4e3acb009dc09dffc98ff7b59b0260e7ecc28.tar.xz
mana-f7e4e3acb009dc09dffc98ff7b59b0260e7ecc28.zip
Log which videodriver is being used.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8d36531d..b24e2c61 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -216,6 +216,15 @@ void init_engine()
exit(1);
}
+ char videoDriverName[64];
+
+ if (SDL_VideoDriverName(videoDriverName, 64)) {
+ log("Using video driver: %s", videoDriverName);
+ }
+ else {
+ log("Using video driver: unkown");
+ }
+
#ifdef USE_OPENGL
// Setup OpenGL
glViewport(0, 0, 800, 600);