From 32bfc6616f272cb084055d7d9841c37d4ddfc87c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 10 Sep 2011 10:37:07 +1000 Subject: Make compatible with VC98's version of the SDK. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') 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(HIWORD(wParam)); if (abs(wheelDelta) >= WHEEL_DELTA) { int nRows = GetVisibleRows(); int linesToScroll = 1; -- cgit v1.2.3