mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-26 10:29:23 +01:00
This commit is contained in:
parent
2774006c2f
commit
d2557c66c8
@ -659,6 +659,14 @@ int WINAPI fake_GetDeviceCaps(HDC hdc, int index)
|
|||||||
return g_ddraw->bpp;
|
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);
|
return real_GetDeviceCaps(hdc, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user