diff --git a/ddraw.rc b/ddraw.rc index a0bd635..b8e5462 100644 --- a/ddraw.rc +++ b/ddraw.rc @@ -4,7 +4,7 @@ #define VERSION_MAJOR 1 #define VERSION_MINOR 3 #define VERSION_BUILD 3 -#define VERSION_REVISION 0 +#define VERSION_REVISION 2 #define VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION #define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION) diff --git a/src/mouse.c b/src/mouse.c index 93d75c2..01be2b8 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -362,11 +362,17 @@ BOOL WINAPI fake_GetClientRect(HWND hWnd, LPRECT lpRect) BOOL WINAPI fake_ClientToScreen(HWND hWnd, LPPOINT lpPoint) { + if (ddraw && ddraw->hWnd != hWnd) + return ClientToScreen(hWnd, lpPoint) && ScreenToClient(ddraw->hWnd, lpPoint); + return TRUE; } BOOL WINAPI fake_ScreenToClient(HWND hWnd, LPPOINT lpPoint) { + if (ddraw && ddraw->hWnd != hWnd) + return ClientToScreen(ddraw->hWnd, lpPoint) && ScreenToClient(hWnd, lpPoint); + return TRUE; }