diff --git a/LEGO1/mxdirectx/legodxinfo.cpp b/LEGO1/mxdirectx/legodxinfo.cpp index bb89275a..acd1d766 100644 --- a/LEGO1/mxdirectx/legodxinfo.cpp +++ b/LEGO1/mxdirectx/legodxinfo.cpp @@ -172,7 +172,6 @@ int LegoDeviceEnumerate::GetBestDevice() int i = 0; int j = 0; int k = -1; - bool cpu_mmx = SupportsSIMD(); for (list::iterator it = m_list.begin(); it != m_list.end(); it++, i++) { @@ -181,13 +180,8 @@ int LegoDeviceEnumerate::GetBestDevice() if ((*it2).m_HWDesc.dcmColorModel != D3DCOLOR_NONE) { return j; } - else { - if (cpu_mmx && (*it2).m_HELDesc.dcmColorModel == D3DCOLOR_RGB && i == 0) { - k = j; - } - else if ((*it2).m_HELDesc.dcmColorModel == D3DCOLOR_MONO && i == 0 && k < 0) { - k = j; - } + else if ((*it2).m_HELDesc.dcmColorModel != D3DCOLOR_NONE && i == 0) { + k = j; } j++; @@ -197,14 +191,6 @@ int LegoDeviceEnumerate::GetBestDevice() return k; } -// FUNCTION: CONFIG 0x00402930 -// FUNCTION: LEGO1 0x1009d1a0 -// FUNCTION: BETA10 0x1011cf54 -bool LegoDeviceEnumerate::SupportsSIMD() -{ - return SDL_HasSSE2() || SDL_HasNEON() || SDL_HasMMX(); -} - // FUNCTION: CONFIG 0x004029a0 // FUNCTION: LEGO1 0x1009d210 // FUNCTION: BETA10 0x1011cfc4 diff --git a/LEGO1/mxdirectx/legodxinfo.h b/LEGO1/mxdirectx/legodxinfo.h index c9289870..b4fa6cfd 100644 --- a/LEGO1/mxdirectx/legodxinfo.h +++ b/LEGO1/mxdirectx/legodxinfo.h @@ -15,7 +15,6 @@ public: int FormatDeviceName(char* p_buffer, const MxDriver* p_ddInfo, const Direct3DDeviceInfo* p_d3dInfo) const; int BETA_1011cc65(int p_idx, char* p_buffer); int GetBestDevice(); - static bool SupportsSIMD(); int FUN_1009d210(); unsigned char FUN_1009d3d0(Direct3DDeviceInfo& p_device);