aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
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" ) )