From 052961904c6663fc38ed832b4c08168cd748b979 Mon Sep 17 00:00:00 2001 From: tma Date: Sun, 3 Aug 2008 21:37:51 +0000 Subject: * Report SDL driver used on GLimp initialisation git-svn-id: svn://svn.icculus.org/quake3/trunk@1435 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/sdl/sdl_glimp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'code/sdl') 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" ) ) -- cgit v1.2.3