experimental tweaks for diablo and warcraft 2

This commit is contained in:
FunkyFr3sh 2019-03-17 00:16:09 +01:00
parent ee14204ced
commit 0f58746515
10 changed files with 176 additions and 57 deletions

View file

@ -250,7 +250,7 @@ void mouse_lock()
if (ddraw->handlemouse)
{
SetCapture(ddraw->hWnd);
//SetCapture(ddraw->hWnd);
ClipCursor(&rc);
while (ShowCursor(FALSE) > 0);
}
@ -315,7 +315,7 @@ void mouse_unlock()
}
ClipCursor(NULL);
ReleaseCapture();
//ReleaseCapture();
SetCursorPos(
rc.left + ddraw->render.viewport.x + (ddraw->cursor.x * ddraw->render.scaleW),