From 1578f29470411748606baa3943367398fc752b75 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Fri, 31 Aug 2001 03:07:38 +0000 Subject: [PATCH] Another SNES mouse fix --- zsnes/src/win/winlink.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index eb3c5e35..e2748c98 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -2577,7 +2577,7 @@ int GetMouseX(void) SetCursorPos(X + WindowWidth + 32, Y + (MouseY * WindowHeight / 224)); } } - else if (FullScreen == 0 && snesmouse != 0 || GUIOn2 == 1) + else if (FullScreen == 0 && snesmouse == 0 || GUIOn2 == 1) { MouseInput->Unacquire(); SetCursorPos(X + WindowWidth + 1, Y + (MouseY * WindowHeight / 224)); @@ -2596,7 +2596,7 @@ int GetMouseX(void) SetCursorPos(X - 32, Y + (MouseY * WindowHeight / 224)); } } - else if (FullScreen == 0 && snesmouse != 0 || GUIOn2 == 1) + else if (FullScreen == 0 && snesmouse == 0 || GUIOn2 == 1) { MouseInput->Unacquire(); SetCursorPos(X - 1, Y + (MouseY * WindowHeight / 224)); @@ -2621,7 +2621,7 @@ int GetMouseY(void) SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 32); } } - else if (FullScreen == 0 && snesmouse != 0 || GUIOn2 == 1) + else if (FullScreen == 0 && snesmouse == 0 || GUIOn2 == 1) { MouseInput->Unacquire(); SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 1); @@ -2640,7 +2640,7 @@ int GetMouseY(void) SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 32); } } - else if (FullScreen == 0 && snesmouse != 0 || GUIOn2 == 1) + else if (FullScreen == 0 && snesmouse == 0 || GUIOn2 == 1) { MouseInput->Unacquire(); SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 1);