r1435 - trunk/code/sdl

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Aug 3 17:37:51 EDT 2008


Author: tma
Date: 2008-08-03 17:37:51 -0400 (Sun, 03 Aug 2008)
New Revision: 1435

Modified:
   trunk/code/sdl/sdl_glimp.c
Log:
* Report SDL driver used on GLimp initialisation


Modified: trunk/code/sdl/sdl_glimp.c
===================================================================
--- trunk/code/sdl/sdl_glimp.c	2008-08-03 19:42:53 UTC (rev 1434)
+++ trunk/code/sdl/sdl_glimp.c	2008-08-03 21:37:51 UTC (rev 1435)
@@ -412,13 +412,16 @@
 
 	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" ) )




More information about the quake3-commits mailing list