Fix obscure ternary operator order, which somehow got missed for months.
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m30s

This commit is contained in:
2025-06-04 13:49:47 -05:00
parent f3cd2b6d82
commit f7d39b0174

View File

@@ -95,7 +95,7 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
int wheel_delta = GET_WHEEL_DELTA_WPARAM(wParam); int wheel_delta = GET_WHEEL_DELTA_WPARAM(wParam);
// Clamp to normalized range [+1 or -1]. // Clamp to normalized range [+1 or -1].
// TODO: Test this and make sure sign is the same on both platforms for each direction. // TODO: Test this and make sure sign is the same on both platforms for each direction.
wheel_delta = (wheel_delta > 0) : 1 ? -1; wheel_delta = (wheel_delta > 0) ? 1 : -1;
// TODO: Determine sign of wheel_delta for each direction, (and on linux too), and document this. // TODO: Determine sign of wheel_delta for each direction, (and on linux too), and document this.
window->processMouseWheel(wheel_delta); window->processMouseWheel(wheel_delta);
break; break;