mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
lie about SIZEPALETTE and NUMCOLORS in GetDeviceCaps
This commit is contained in:
parent
25ef20e711
commit
fc99383f21
@ -856,13 +856,18 @@ int WINAPI fake_GetDeviceCaps(HDC hdc, int index)
|
||||
{
|
||||
return g_ddraw.bpp;
|
||||
}
|
||||
|
||||
if (g_ddraw.ref &&
|
||||
g_ddraw.bpp == 8 &&
|
||||
index == RASTERCAPS &&
|
||||
(g_config.hook != 2 || g_ddraw.renderer == gdi_render_main))
|
||||
|
||||
if (g_ddraw.ref && g_ddraw.bpp == 8 && (g_config.hook != 2 || g_ddraw.renderer == gdi_render_main))
|
||||
{
|
||||
return RC_PALETTE | real_GetDeviceCaps(hdc, index);
|
||||
if (index == RASTERCAPS)
|
||||
{
|
||||
return RC_PALETTE | real_GetDeviceCaps(hdc, index);
|
||||
}
|
||||
|
||||
if (index == SIZEPALETTE || index == NUMCOLORS)
|
||||
{
|
||||
return 256;
|
||||
}
|
||||
}
|
||||
|
||||
return real_GetDeviceCaps(hdc, index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user