"Couldn't find primary display driver; logging all drivers"
This commit is contained in:
@@ -37,7 +37,9 @@ static void GetDisplayDriverDebugInfo()
|
|||||||
else
|
else
|
||||||
LOG->Info( "Primary display driver: %s", sPrimaryDeviceName.c_str() );
|
LOG->Info( "Primary display driver: %s", sPrimaryDeviceName.c_str() );
|
||||||
|
|
||||||
for( int i=0; true; i++ )
|
bool LoggedSomething = false;
|
||||||
|
int i;
|
||||||
|
for( i=0; true; i++ )
|
||||||
{
|
{
|
||||||
VideoDriverInfo info;
|
VideoDriverInfo info;
|
||||||
if( !GetVideoDriverInfo(i, info) )
|
if( !GetVideoDriverInfo(i, info) )
|
||||||
@@ -46,13 +48,28 @@ static void GetDisplayDriverDebugInfo()
|
|||||||
if( sPrimaryDeviceName == "" ) // failed to get primary display name (NT4)
|
if( sPrimaryDeviceName == "" ) // failed to get primary display name (NT4)
|
||||||
{
|
{
|
||||||
LogVideoDriverInfo( info );
|
LogVideoDriverInfo( info );
|
||||||
|
LoggedSomething = true;
|
||||||
}
|
}
|
||||||
else if( info.sDescription == sPrimaryDeviceName )
|
else if( info.sDescription == sPrimaryDeviceName )
|
||||||
{
|
{
|
||||||
LogVideoDriverInfo( info );
|
LogVideoDriverInfo( info );
|
||||||
|
LoggedSomething = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if( !LoggedSomething )
|
||||||
|
{
|
||||||
|
LOG->Warn("Couldn't find primary display driver; logging all drivers");
|
||||||
|
|
||||||
|
for( i=0; true; i++ )
|
||||||
|
{
|
||||||
|
VideoDriverInfo info;
|
||||||
|
if( !GetVideoDriverInfo(i, info) )
|
||||||
|
break;
|
||||||
|
|
||||||
|
LogVideoDriverInfo( info );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static CString wo_ssprintf( MMRESULT err, const char *fmt, ...)
|
static CString wo_ssprintf( MMRESULT err, const char *fmt, ...)
|
||||||
|
|||||||
Reference in New Issue
Block a user