mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +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 (lpPoint)
|
||||||
{
|
{
|
||||||
if (!ddraw->fakecursorpos)
|
if (ddraw->fakecursorpos)
|
||||||
{
|
{
|
||||||
if (ddraw->locked || ddraw->devmode)
|
lpPoint->x = (int)ddraw->cursor.x;
|
||||||
{
|
lpPoint->y = (int)ddraw->cursor.y;
|
||||||
lpPoint->x = pt.x;
|
|
||||||
lpPoint->y = pt.y;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
else if (ddraw->locked || ddraw->devmode)
|
||||||
lpPoint->x = (int)ddraw->cursor.x;
|
{
|
||||||
lpPoint->y = (int)ddraw->cursor.y;
|
return GetCursorPos(lpPoint);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user