diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-21 20:14:08 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-21 20:14:08 +0000 |
commit | f7e4e3acb009dc09dffc98ff7b59b0260e7ecc28 (patch) | |
tree | 49c4e65659b17ff06d8ad26fa51424cf9215e305 /src | |
parent | 43e20b978e424d01ecbe49950b41111081a3ee43 (diff) | |
download | mana-f7e4e3acb009dc09dffc98ff7b59b0260e7ecc28.tar.gz mana-f7e4e3acb009dc09dffc98ff7b59b0260e7ecc28.tar.bz2 mana-f7e4e3acb009dc09dffc98ff7b59b0260e7ecc28.tar.xz mana-f7e4e3acb009dc09dffc98ff7b59b0260e7ecc28.zip |
Log which videodriver is being used.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/main.cpp | 9 |
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); |