aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-08-03 21:37:51 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-08-03 21:37:51 +0000
commit052961904c6663fc38ed832b4c08168cd748b979 (patch)
tree106aa26534573954d26d277e9b120cea90a53801 /code
parent4901c4880e652e5ff74bd759049ccf628d8fb4b4 (diff)
downloadioquake3-aero-052961904c6663fc38ed832b4c08168cd748b979.tar.gz
ioquake3-aero-052961904c6663fc38ed832b4c08168cd748b979.zip
* Report SDL driver used on GLimp initialisation
git-svn-id: svn://svn.icculus.org/quake3/trunk@1435 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/sdl/sdl_glimp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/code/sdl/sdl_glimp.c b/code/sdl/sdl_glimp.c
index f6719a5..fbc7497 100644
--- a/code/sdl/sdl_glimp.c
+++ b/code/sdl/sdl_glimp.c
@@ -412,13 +412,16 @@ static qboolean GLimp_StartDriverAndSetMode( int mode, qboolean fullscreen )
if (!SDL_WasInit(SDL_INIT_VIDEO))
{
- ri.Printf( PRINT_ALL, "SDL_Init( SDL_INIT_VIDEO )... ");
+ char driverName[ 64 ];
+
if (SDL_Init(SDL_INIT_VIDEO) == -1)
{
- ri.Printf( PRINT_ALL, "FAILED (%s)\n", SDL_GetError());
+ ri.Printf( PRINT_ALL, "SDL_Init FAILED (%s)\n", SDL_GetError());
return qfalse;
}
- ri.Printf( PRINT_ALL, "OK\n");
+
+ SDL_VideoDriverName( driverName, sizeof( driverName ) - 1 );
+ ri.Printf( PRINT_ALL, "SDL using driver \"%s\"\n", driverName );
}
if (fullscreen && Cvar_VariableIntegerValue( "in_nograb" ) )