From f7e4e3acb009dc09dffc98ff7b59b0260e7ecc28 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 21 Mar 2005 20:14:08 +0000 Subject: Log which videodriver is being used. --- src/Makefile.am | 2 +- src/main.cpp | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2