aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--win32/PlatWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 0ccc8aa13..4d937ac81 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -2103,7 +2103,7 @@ LRESULT ListBoxX::WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam
return ::DefWindowProc(hWnd, iMessage, wParam, lParam);
case WM_MOUSEWHEEL:
- wheelDelta -= GET_WHEEL_DELTA_WPARAM(wParam);
+ wheelDelta -= static_cast<short>(HIWORD(wParam));
if (abs(wheelDelta) >= WHEEL_DELTA) {
int nRows = GetVisibleRows();
int linesToScroll = 1;