1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00
This commit is contained in:
FunkyFr3sh 2023-03-03 22:29:35 +01:00 committed by GitHub
parent 2774006c2f
commit d2557c66c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -658,6 +658,14 @@ int WINAPI fake_GetDeviceCaps(HDC hdc, int index)
{
return g_ddraw->bpp;
}
if (g_ddraw &&
g_ddraw->bpp == 8 &&
index == RASTERCAPS &&
(g_hook_method != 2 || g_ddraw->renderer == gdi_render_main))
{
return RC_PALETTE | real_GetDeviceCaps(hdc, index);
}
return real_GetDeviceCaps(hdc, index);
}