summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/main.cpp9
2 files changed, 10 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 63482415..1080accd 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -118,4 +118,4 @@ INCLUDES= $(all_includes)
tmw_LDFLAGS = $(all_libraries) $(LIBSDL_RPATH) -lguichan_sdl -lguichan `pkg-config --libs libxml-2.0`
tmw_CXXFLAGS = -Wall $(LIBSDL_CFLAGS) `pkg-config --cflags libxml-2.0` -fno-inline
tmw_LDADD = $(LIBSDL_LIBS) -lguichan_opengl -lguichan -lGL -lphysfs
-tmw_TARGET = ../tmw
+tmw_TARGET = tmw
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);