Config clean ups (#226)

This commit is contained in:
Anders Jenbo 2025-06-03 20:08:09 +02:00 committed by GitHub
parent 85e8c2e42a
commit f412d44f83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 7 deletions

View File

@ -91,9 +91,8 @@ bool CMainDialog::OnInitDialog()
device_i += 1; device_i += 1;
sprintf( sprintf(
device_name, device_name,
"%s [%s] ( %s )", "%s ( %s )",
device.m_deviceDesc, device.m_deviceDesc,
device.m_deviceName,
driver_i == 0 ? "Primary Device" : "Secondary Device" driver_i == 0 ? "Primary Device" : "Secondary Device"
); );
m_ui->devicesList->addItem(device_name); m_ui->devicesList->addItem(device_name);

View File

@ -342,7 +342,8 @@ unsigned char LegoDeviceEnumerate::FUN_1009d3d0(Direct3DDeviceInfo& p_device)
} }
if (p_device.m_HWDesc.dcmColorModel != D3DCOLOR_NONE) { if (p_device.m_HWDesc.dcmColorModel != D3DCOLOR_NONE) {
if ((p_device.m_HWDesc.dwDeviceZBufferBitDepth & DDBD_16) == DDBD_16 && DDBitDepths zDepth = p_device.m_HWDesc.dwDeviceZBufferBitDepth;
if ((zDepth & (DDBD_16 | DDBD_24 | DDBD_32)) != static_cast<DDBitDepths>(0) &&
(p_device.m_HWDesc.dpcTriCaps.dwTextureCaps & D3DPTEXTURECAPS_PERSPECTIVE) == D3DPTEXTURECAPS_PERSPECTIVE) { (p_device.m_HWDesc.dpcTriCaps.dwTextureCaps & D3DPTEXTURECAPS_PERSPECTIVE) == D3DPTEXTURECAPS_PERSPECTIVE) {
return TRUE; return TRUE;
} }

View File

@ -132,7 +132,7 @@ void OpenGL15Renderer::GetDesc(D3DDEVICEDESC* halDesc, D3DDEVICEDESC* helDesc)
{ {
halDesc->dcmColorModel = D3DCOLORMODEL::RGB; halDesc->dcmColorModel = D3DCOLORMODEL::RGB;
halDesc->dwFlags = D3DDD_DEVICEZBUFFERBITDEPTH; halDesc->dwFlags = D3DDD_DEVICEZBUFFERBITDEPTH;
halDesc->dwDeviceZBufferBitDepth = DDBD_16 | DDBD_24; // Todo add support for other depths halDesc->dwDeviceZBufferBitDepth = DDBD_24; // Todo add support for other depths
helDesc->dwDeviceRenderBitDepth = DDBD_8 | DDBD_16 | DDBD_24 | DDBD_32; helDesc->dwDeviceRenderBitDepth = DDBD_8 | DDBD_16 | DDBD_24 | DDBD_32;
halDesc->dpcTriCaps.dwTextureCaps = D3DPTEXTURECAPS_PERSPECTIVE; halDesc->dpcTriCaps.dwTextureCaps = D3DPTEXTURECAPS_PERSPECTIVE;
halDesc->dpcTriCaps.dwShadeCaps = D3DPSHADECAPS_ALPHAFLATBLEND; halDesc->dpcTriCaps.dwShadeCaps = D3DPSHADECAPS_ALPHAFLATBLEND;
@ -143,7 +143,7 @@ void OpenGL15Renderer::GetDesc(D3DDEVICEDESC* halDesc, D3DDEVICEDESC* helDesc)
const char* OpenGL15Renderer::GetName() const char* OpenGL15Renderer::GetName()
{ {
return "OpenGL 1.5 Renderer"; return "OpenGL 1.5 HAL";
} }
HRESULT OpenGL15Renderer::Render() HRESULT OpenGL15Renderer::Render()

View File

@ -316,7 +316,7 @@ void Direct3DRMSDL3GPURenderer::GetDesc(D3DDEVICEDESC* halDesc, D3DDEVICEDESC* h
const char* Direct3DRMSDL3GPURenderer::GetName() const char* Direct3DRMSDL3GPURenderer::GetName()
{ {
return "SDL3 GPU Rendere"; return "SDL3 GPU HAL";
} }
HRESULT Direct3DRMSDL3GPURenderer::Render() HRESULT Direct3DRMSDL3GPURenderer::Render()

View File

@ -463,7 +463,7 @@ void Direct3DRMSoftwareRenderer::GetDesc(D3DDEVICEDESC* halDesc, D3DDEVICEDESC*
const char* Direct3DRMSoftwareRenderer::GetName() const char* Direct3DRMSoftwareRenderer::GetName()
{ {
return "Software Renderer"; return "Miniwin Emulation";
} }
HRESULT Direct3DRMSoftwareRenderer::Render() HRESULT Direct3DRMSoftwareRenderer::Render()