From b7dd45a93559b48ff348af8c0b7272ffdb691ed9 Mon Sep 17 00:00:00 2001 From: rkrolib Date: Thu, 6 Nov 2003 21:41:17 +0000 Subject: [PATCH] From John, a couple of lines needed to be changed to fix the mouse wheel support on WIN32. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@302 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freeglut/freeglut/src/freeglut_main.c b/freeglut/freeglut/src/freeglut_main.c index 485ee4b..6d2ec75 100644 --- a/freeglut/freeglut/src/freeglut_main.c +++ b/freeglut/freeglut/src/freeglut_main.c @@ -1411,9 +1411,9 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, case 0x020a: /* Should be WM_MOUSEWHEEL but my compiler doesn't recognize it */ { - int wheel_number = LOWORD( lParam ); + int wheel_number = LOWORD( wParam ); /* THIS IS SPECULATIVE -- John Fay, 10/2/03 */ - int ticks = HIWORD( lParam ) / 120; + short ticks = HIWORD( lParam ) / 120; /* Should be WHEEL_DELTA instead of 120 */ int direction = 1;