Removed more unneeded logs.

This commit is contained in:
Menotdan
2023-05-18 00:00:06 -04:00
parent 1d079842f6
commit 408d620b17

View File

@@ -40,13 +40,11 @@ public:
};
void ScreenUtilitiesWindows::PickSelected() {
// Push event with the picked color.
Int2 cursorPos = ScreenUtilities::GetScreenCursorPosition();
Color32 colorPicked = ScreenUtilities::GetPixelAt(cursorPos.X, cursorPos.Y);
LOG(Warning, "REAL: {0}", ScreenUtilities::PickColorDone.Count());
// Push event with the picked color.
ScreenUtilities::PickColorDone(colorPicked);
LOG(Warning, "FAKE");
}
static HHOOK _mouseCallbackHook;
@@ -56,7 +54,6 @@ LRESULT CALLBACK ScreenUtilsMouseCallback(
_In_ LPARAM lParam
)
{
LOG(Warning, "Hell lag. {0}", GetCurrentThreadId());
if (wParam != WM_LBUTTONDOWN) { // Return as early as possible.
return CallNextHookEx(NULL, nCode, wParam, lParam);
}
@@ -67,7 +64,6 @@ LRESULT CALLBACK ScreenUtilsMouseCallback(
if (nCode >= 0 && wParam == WM_LBUTTONDOWN) { // Now try to run our code.
LOG(Warning, "Mouse callback hit. Skipping event. (hopefully)");
UnhookWindowsHookEx(_mouseCallbackHook);
ScreenUtilitiesWindows::PickSelected();