mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 10:07:47 +01:00
fix for window mode
This commit is contained in:
parent
b2bacb95c3
commit
b99f60c542
14
src/mouse.c
14
src/mouse.c
@ -56,21 +56,19 @@ BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint)
|
||||
|
||||
if (lpPoint)
|
||||
{
|
||||
if (!ddraw->fakecursorpos)
|
||||
if (ddraw->fakecursorpos)
|
||||
{
|
||||
if (ddraw->locked || ddraw->devmode)
|
||||
lpPoint->x = (int)ddraw->cursor.x;
|
||||
lpPoint->y = (int)ddraw->cursor.y;
|
||||
}
|
||||
else if (ddraw->locked || ddraw->devmode)
|
||||
{
|
||||
lpPoint->x = pt.x;
|
||||
lpPoint->y = pt.y;
|
||||
return GetCursorPos(lpPoint);
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
lpPoint->x = (int)ddraw->cursor.x;
|
||||
lpPoint->y = (int)ddraw->cursor.y;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user