fix for window mode
This commit is contained in:
parent
b2bacb95c3
commit
b99f60c542
1 changed files with 9 additions and 11 deletions
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…
Reference in a new issue