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

Fixed empty overlays on Radeon RX 7xxx

See issue #325.
This commit is contained in:
narzoul 2024-06-08 10:49:02 +02:00
parent 89b2a63164
commit 471cd11389

View File

@ -1362,7 +1362,6 @@ namespace D3dDdi
continue; continue;
} }
D3DDDIFORMAT format = D3DDDIFMT_X8R8G8B8;
COLORREF colorKey = 0; COLORREF colorKey = 0;
BYTE alpha = 0; BYTE alpha = 0;
DWORD flags = 0; DWORD flags = 0;
@ -1378,11 +1377,6 @@ namespace D3dDdi
{ {
flags |= ULW_ALPHA; flags |= ULW_ALPHA;
} }
if (layeredWindow.alphaFormat & AC_SRC_ALPHA)
{
format = D3DDDIFMT_A8R8G8B8;
}
} }
else else
{ {
@ -1391,7 +1385,7 @@ namespace D3dDdi
RECT srcRect = { 0, 0, visibleRect.right - visibleRect.left + 1, visibleRect.bottom - visibleRect.top + 1 }; RECT srcRect = { 0, 0, visibleRect.right - visibleRect.left + 1, visibleRect.bottom - visibleRect.top + 1 };
auto& windowSurface = repo.getTempSysMemSurface(srcRect.right, srcRect.bottom); auto& windowSurface = repo.getTempSysMemSurface(srcRect.right, srcRect.bottom);
auto& texture = repo.getTempTexture(srcRect.right, srcRect.bottom, format); auto& texture = repo.getTempTexture(srcRect.right, srcRect.bottom, D3DDDIFMT_A8R8G8B8);
if (!windowSurface.resource || !texture.resource) if (!windowSurface.resource || !texture.resource)
{ {
continue; continue;