#39 hook GetDeviceCaps - fixes graphcial glitches for Megaman X4

This commit is contained in:
FunkyFr3sh 2020-09-17 05:49:36 +02:00
parent bbd67907c0
commit 4e6ecfe37c
4 changed files with 16 additions and 0 deletions

View file

@ -422,6 +422,16 @@ BOOL WINAPI fake_EnableWindow(HWND hWnd, BOOL bEnable)
return real_EnableWindow(hWnd, bEnable);
}
int WINAPI fake_GetDeviceCaps(HDC hdc, int index)
{
if (ddraw && ddraw->bpp && index == BITSPIXEL)
{
return ddraw->bpp;
}
return real_GetDeviceCaps(hdc, index);
}
BOOL WINAPI fake_DestroyWindow(HWND hWnd)
{
BOOL result = real_DestroyWindow(hWnd);