Ooops. I screwed up on part of John's fixes. Sorry.
authorRichard Rauch <rkr@olib.org>
Thu, 6 Nov 2003 23:40:21 +0000 (23:40 +0000)
committerRichard Rauch <rkr@olib.org>
Thu, 6 Nov 2003 23:40:21 +0000 (23:40 +0000)
I think that I have his fix properly committed now.  Mea culpa.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@305 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_main.c

index f4bd177..6c569d3 100644 (file)
@@ -1415,7 +1415,7 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
     {
         int wheel_number = LOWORD( wParam );
         /* THIS IS SPECULATIVE -- John Fay, 10/2/03 */
-        short ticks = HIWORD( lParam ) / 120;
+        short ticks = HIWORD( wParam ) / 120;
         /* Should be WHEEL_DELTA instead of 120 */
         int direction = 1;