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