#39 hook GetDeviceCaps - fixes graphcial glitches for Megaman X4
This commit is contained in:
parent
bbd67907c0
commit
4e6ecfe37c
4 changed files with 16 additions and 0 deletions
10
src/mouse.c
10
src/mouse.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue