Compare commits

..

No commits in common. "e6698f85a4b2fc7ad447bf9bb4c1c8d492a41203" and "223881eae36374eda296395efd82c8f5196f1837" have entirely different histories.

3 changed files with 0 additions and 15 deletions

View File

@ -771,14 +771,6 @@ void CEnumerateDevices::WriteSelectedDeviceToRegistry()
SetZBufferBitdepth(dev.d3dDevice.iZBufferBitDepth); SetZBufferBitdepth(dev.d3dDevice.iZBufferBitDepth);
} }
void CEnumerateDevices::LoadSelectedDeviceFromRegistry()
{
char str_title[2048] = { '\0' };
GetRegString(strD3D_TITLE, str_title, sizeof(str_title), "");
SelectDevice(str_title);
}
// //
// Global variables. // Global variables.

View File

@ -150,10 +150,8 @@ public:
return Devices[iSelectedDevice]; return Devices[iSelectedDevice];
} }
void LoadSelectedDeviceFromRegistry();
void WriteSelectedDeviceToRegistry(); void WriteSelectedDeviceToRegistry();
int GetSelectedDeviceIndex() const { return iSelectedDevice; }
void SelectDevice(char* str); void SelectDevice(char* str);
void GetTitle(int i, char* str) const; void GetTitle(int i, char* str) const;

View File

@ -274,11 +274,6 @@ void CConfigureWnd::InitializeCardSelection()
ListBox_AddString(m_hwndList, str); ListBox_AddString(m_hwndList, str);
} }
penumdevDevices->LoadSelectedDeviceFromRegistry();
int selectedDevice = penumdevDevices->GetSelectedDeviceIndex();
if (selectedDevice >= 0 && selectedDevice < iMaxDevices)
penumdevDevices->GetTitle(penumdevDevices->GetSelectedDeviceIndex(), str);
// Attempt to select a string. // Attempt to select a string.
ListBox_SelectString(m_hwndList, 0, str); ListBox_SelectString(m_hwndList, 0, str);