1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed presentation in Carmen Sandiego's Great Chase Through Time

This commit is contained in:
narzoul 2024-06-30 11:58:52 +02:00
parent a5636bef12
commit 944ae1554d

View File

@ -733,6 +733,11 @@ namespace D3dDdi
{
m_fixedData.Format = g_formatOverride;
}
else if (D3DDDIFMT_L8 == m_fixedData.Format && !m_fixedData.Flags.Texture)
{
m_fixedData.Flags.Texture = 1;
m_fixedData.MipLevels = 1;
}
else if (m_fixedData.Flags.RenderTarget && m_device.getAdapter().isEmulatedRenderTargetFormat(m_fixedData.Format))
{
m_fixedData.Flags.RenderTarget = 0;
@ -1326,7 +1331,8 @@ namespace D3dDdi
copySubResourceRegion(*srcResource, 0, data.SrcRect, data.hSrcResource, data.SrcSubResourceIndex, data.SrcRect);
}
if (D3DDDIFMT_P8 == srcResource->m_origData.Format)
if (D3DDDIFMT_P8 == srcResource->m_origData.Format ||
D3DDDIFMT_L8 == srcResource->m_origData.Format)
{
auto entries(Gdi::Palette::getHardwarePalette());
RGBQUAD pal[256] = {};