Fixed mouse trap bug in fullscreen

This commit is contained in:
pagefault
2001-07-26 03:39:24 +00:00
parent 4aed468e9f
commit bac33db545

View File

@@ -2539,15 +2539,15 @@ int GetMouseX(void)
{
MouseX = MouseMaxX;
if (TrapMouseCursor == 1 && FullScreen == 0)
if (TrapMouseCursor == 1)
{
if (abs(MouseMoveX) > 10 && T36HZEnabled)
if (abs(MouseMoveX) > 10 && T36HZEnabled && FullScreen == 0)
{
MouseInput->Unacquire();
SetCursorPos(X + WindowWidth + 32, Y + (MouseY * WindowHeight / 224));
}
}
else
else if (FullScreen == 0)
{
MouseInput->Unacquire();
SetCursorPos(X + WindowWidth + 1, Y + (MouseY * WindowHeight / 224));
@@ -2558,15 +2558,15 @@ int GetMouseX(void)
{
MouseX = MouseMinX;
if (TrapMouseCursor == 1 && FullScreen == 0)
if (TrapMouseCursor == 1)
{
if (abs(MouseMoveX) > 10 && T36HZEnabled)
if (abs(MouseMoveX) > 10 && T36HZEnabled && FullScreen == 0)
{
MouseInput->Unacquire();
SetCursorPos(X - 32, Y + (MouseY * WindowHeight / 224));
}
}
else
else if (FullScreen == 0)
{
MouseInput->Unacquire();
SetCursorPos(X - 1, Y + (MouseY * WindowHeight / 224));
@@ -2583,15 +2583,15 @@ int GetMouseY(void)
{
MouseY = MouseMaxY;
if (TrapMouseCursor == 1 && FullScreen == 0)
if (TrapMouseCursor == 1)
{
if (abs(MouseMoveY) > 10 && T36HZEnabled)
if (abs(MouseMoveY) > 10 && T36HZEnabled && FullScreen == 0)
{
MouseInput->Unacquire();
SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 32);
}
}
else
else if (FullScreen == 0)
{
MouseInput->Unacquire();
SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 1);
@@ -2602,15 +2602,15 @@ int GetMouseY(void)
{
MouseY = MouseMinY;
if (TrapMouseCursor == 1 && FullScreen == 0)
if (TrapMouseCursor == 1)
{
if (abs(MouseMoveY) > 10 && T36HZEnabled)
if (abs(MouseMoveY) > 10 && T36HZEnabled && FullScreen == 0)
{
MouseInput->Unacquire();
SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 32);
}
}
else
else if (FullScreen == 0)
{
MouseInput->Unacquire();
SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 1);
@@ -2637,7 +2637,7 @@ int GetMouseButton(void)
RECT rc1;
if (MouseButton&2)
{
while ((MouseButton!=0)&&T36HZEnabled&&(FullScreen==0))
while (MouseButton != 0 && T36HZEnabled && FullScreen == 0)
{
Moving = 1;
X += MouseMoveX;