aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2014-02-12 12:05:48 +0000
committerD G Turner2014-02-12 12:11:53 +0000
commit2589228329759839b066aa9c6e4192095573812c (patch)
treea4925a6bd26370c1c58856e963d01dec89185e27
parenta4ad32c5d9d4a09765c8441b7296a0aefe66d327 (diff)
downloadscummvm-rg350-2589228329759839b066aa9c6e4192095573812c.tar.gz
scummvm-rg350-2589228329759839b066aa9c6e4192095573812c.tar.bz2
scummvm-rg350-2589228329759839b066aa9c6e4192095573812c.zip
SDL: Add debugging code to output SDL video driver name being used.
-rw-r--r--backends/platform/sdl/sdl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 913ae51f69..f56c00eed5 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -274,6 +274,14 @@ void OSystem_SDL::initSDL() {
if (SDL_Init(sdlFlags) == -1)
error("Could not initialize SDL: %s", SDL_GetError());
+ const int maxNameLen = 20;
+ char sdlDriverName[maxNameLen];
+ sdlDriverName[0] = '\0';
+ SDL_VideoDriverName(sdlDriverName, maxNameLen);
+ // Using printf rather than debug() here as debug()/logging
+ // is not active by this point.
+ printf("Using SDL Video Driver \"%s\" ...\n", sdlDriverName);
+
_initedSDL = true;
}
}