From 34befdb1d376f5daa01d6e68524788f200a8fd23 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 4 May 2007 17:19:14 +0000 Subject: [PATCH] work around reconfig video ever time due to driver strings with spaces at the end; regression probably caused by IniFile stripping spaces --- stepmania/src/archutils/Win32/VideoDriverInfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/archutils/Win32/VideoDriverInfo.cpp b/stepmania/src/archutils/Win32/VideoDriverInfo.cpp index 7f2fa1f4f4..da521ec7a4 100644 --- a/stepmania/src/archutils/Win32/VideoDriverInfo.cpp +++ b/stepmania/src/archutils/Win32/VideoDriverInfo.cpp @@ -45,7 +45,8 @@ RString GetPrimaryVideoName() RString GetPrimaryVideoDriverName() { - const RString sPrimaryDeviceName = GetPrimaryVideoName(); + RString sPrimaryDeviceName = GetPrimaryVideoName(); + TrimRight( sPrimaryDeviceName ); if( sPrimaryDeviceName != "" ) return sPrimaryDeviceName; @@ -107,6 +108,7 @@ bool GetVideoDriverInfo( int iCardno, VideoDriverInfo &info ) lst.erase( lst.begin()+iCardno ); continue; } + TrimRight( info.sDescription ); RegistryAccess::GetRegValue( sKey, "DriverDate", info.sDate ); RegistryAccess::GetRegValue( sKey, "MatchingDeviceId", info.sDeviceID );