make devmode working in windowed mode too

This commit is contained in:
FunkyFr3sh 2018-11-09 00:29:33 +01:00
parent 61075139f2
commit a0605813a9
2 changed files with 3 additions and 11 deletions

View file

@ -104,16 +104,8 @@ BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint)
if (lpPoint)
{
if (ddraw->devmode)
{
lpPoint->x = realpt.x;
lpPoint->y = realpt.y;
}
else
{
lpPoint->x = (int)ddraw->cursor.x;
lpPoint->y = (int)ddraw->cursor.y;
}
lpPoint->x = (int)ddraw->cursor.x;
lpPoint->y = (int)ddraw->cursor.y;
}
return TRUE;